fix stuff with iglu -u

This commit is contained in:
Ella-0 2021-05-29 10:04:00 +01:00
parent 21eebdb14f
commit 5bdef5032d

View file

@ -164,6 +164,7 @@ elif [ "$iu" = "1" ]; then
case $(stat -c "%F" /$file) in case $(stat -c "%F" /$file) in
directory) rmdir 2>/dev/null /$file;; directory) rmdir 2>/dev/null /$file;;
"regular file") rm /$file;; "regular file") rm /$file;;
"regular empty file") rm /$file;;
"symbolic link") rm /$file;; "symbolic link") rm /$file;;
*) break;; *) break;;
esac esac
@ -211,8 +212,9 @@ elif [ "$u" = "1" ]; then
case $(stat -c "%F" /$file) in case $(stat -c "%F" /$file) in
directory) rmdir 2>/dev/null /$file;; directory) rmdir 2>/dev/null /$file;;
"regular file") rm /$file;; "regular file") rm /$file;;
"regular empty file") rm /$file;;
"symbolic link") rm /$file;; "symbolic link") rm /$file;;
*) echo "can't remove $file";; *) echo "can't remove /$file";;
esac esac
done done
elif [ "$b" = "1" ]; then elif [ "$b" = "1" ]; then