* Fix File exists' errors if the
result' symlink exists but is
dangling.
This commit is contained in:
parent
f8ac8d1ec8
commit
2aa1f4717b
1 changed files with 4 additions and 5 deletions
|
@ -27,12 +27,11 @@ for i in "$@"; do
|
||||||
for j in $outPaths; do
|
for j in $outPaths; do
|
||||||
echo "$j"
|
echo "$j"
|
||||||
if test -z "$noLink"; then
|
if test -z "$noLink"; then
|
||||||
if test -e result; then
|
if test -L result; then
|
||||||
if ! test -L result; then
|
|
||||||
echo "cannot remove \`result\' (not a symlink)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
rm result
|
rm result
|
||||||
|
elif test -e result; then
|
||||||
|
echo "cannot remove \`result' (not a symlink)"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
ln -s "$j" result
|
ln -s "$j" result
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue