From 5bdef5032d61d92efa4ed5d2e1d29d2a4438f0a8 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 29 May 2021 10:04:00 +0100 Subject: [PATCH] fix stuff with iglu -u --- iglu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iglu.sh b/iglu.sh index ce4f5a9..0de0116 100755 --- a/iglu.sh +++ b/iglu.sh @@ -164,6 +164,7 @@ elif [ "$iu" = "1" ]; then case $(stat -c "%F" /$file) in directory) rmdir 2>/dev/null /$file;; "regular file") rm /$file;; + "regular empty file") rm /$file;; "symbolic link") rm /$file;; *) break;; esac @@ -211,8 +212,9 @@ elif [ "$u" = "1" ]; then case $(stat -c "%F" /$file) in directory) rmdir 2>/dev/null /$file;; "regular file") rm /$file;; + "regular empty file") rm /$file;; "symbolic link") rm /$file;; - *) echo "can't remove $file";; + *) echo "can't remove /$file";; esac done elif [ "$b" = "1" ]; then