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)
[ $? -eq 0 ] && echo $out
elif [ -e "$file" ]
then
rm -vf "$file"
elif [ -L "$file" ]
then
rm -vf "$file"
else
echo "File $file not found."
echo "File \"$file\" not found."
RC=1
fi
done