Handle symbolic links correctly in rpkg.
This commit is contained in:
parent
9c8c735dc2
commit
67aaa66cea
5
src/rpkg
5
src/rpkg
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user