From 12262f1e7b449402ff11730616ce3710a83ce8c8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Apr 2024 15:34:02 +0200 Subject: [PATCH] fix: Check file permissions --- src/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 6012c95..1065d75 100644 --- a/src/install.sh +++ b/src/install.sh @@ -1196,9 +1196,7 @@ if ! updateImage "$ISO" "$DIR" "$XML"; then return 0 fi -if [ -w "$ISO" ]; then - rm -f "$ISO" -else +if ! rm -f "$ISO" 2> /dev/null; then BASE="windows.iso" ISO="$STORAGE/$BASE" rm -f "$ISO"