From 67aaa66cea224fcdecef9c4efc58610c482b001b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 15 Sep 2018 22:19:39 +0200 Subject: [PATCH] Handle symbolic links correctly in rpkg. --- src/rpkg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rpkg b/src/rpkg index 6d390fc..8307613 100755 --- a/src/rpkg +++ b/src/rpkg @@ -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