mirror of
git://slackware.nl/current.git
synced 2024-11-16 07:48:02 +01:00
12 lines
393 B
Bash
12 lines
393 B
Bash
|
# If no dir file exists, we'll assume it's a fresh installation and create one
|
||
|
# Otherwise, we'll throw out the new copy to preserve what's already installed
|
||
|
if [ -e usr/info/dir ]; then
|
||
|
# If there is no topmost node, this dir file is broken, so replace it:
|
||
|
if ! grep -q "Node: Top" usr/info/dir ; then
|
||
|
mv usr/info/dir.new usr/info/dir
|
||
|
fi
|
||
|
else
|
||
|
mv usr/info/dir.new usr/info/dir
|
||
|
fi
|
||
|
|