Also remove symlinks.

This commit is contained in:
Faerbit 2019-08-25 13:52:27 +02:00
parent c55b90657f
commit bf166b6218

View File

@ -23,7 +23,7 @@ do
then
out=$(rmdir -v "$file" 2>&1)
[ $? -eq 0 ] && echo $out
elif [ -e "$file" ]
elif [[ -L "$file" || -e "$file" ]]
then
rm -vf "$file"
else