Handle symbolic links correctly in rpkg.

This commit is contained in:
Faerbit 2018-09-15 22:19:39 +02:00
parent 9c8c735dc2
commit 67aaa66cea

View File

@ -24,10 +24,13 @@ do
out=$(rmdir -v "$file" 2>&1) out=$(rmdir -v "$file" 2>&1)
[ $? -eq 0 ] && echo $out [ $? -eq 0 ] && echo $out
elif [ -e "$file" ] elif [ -e "$file" ]
then
rm -vf "$file"
elif [ -L "$file" ]
then then
rm -vf "$file" rm -vf "$file"
else else
echo "File $file not found." echo "File \"$file\" not found."
RC=1 RC=1
fi fi
done done