Lines 42-50
Link Here
|
42 |
# The presence of "$dir/$1" is unusual in modern intallations, and |
42 |
# The presence of "$dir/$1" is unusual in modern intallations, and |
43 |
# the results are mostly unused. So only recreate them if they |
43 |
# the results are mostly unused. So only recreate them if they |
44 |
# already existed. |
44 |
# already existed. |
45 |
if test -L "$dir/$1" && |
45 |
if test -L "$dir/$1"; then |
46 |
[ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then |
46 |
if [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then |
47 |
ln -sf "$1-$ver.old" "$dir/$1.old" |
47 |
ln -sf "$1-$ver.old" "$dir/$1.old" |
|
|
48 |
else |
49 |
mv "$dir/$1" "$dir/$1.old" |
50 |
fi |
48 |
ln -sf "$1-$ver" "$dir/$1" |
51 |
ln -sf "$1-$ver" "$dir/$1" |
49 |
else |
52 |
else |
50 |
mv "$dir/$1" "$dir/$1.old" |
53 |
mv "$dir/$1" "$dir/$1.old" |