From 45142fe5a4fecbb40cdf2a9275fa51c4cad3b245 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 12 May 2024 13:49:17 +0200 Subject: [PATCH] fix: Shellcheck --- src/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index 9dea17a..550e4f1 100644 --- a/src/install.sh +++ b/src/install.sh @@ -35,7 +35,7 @@ skipInstall() { info "Please start with an empty /storage folder, if you want to install a different version of Windows." return 0 fi - [ -f "$previous" ] && rm -f "$previous" || true + [ -f "$previous" ] && rm -f "$previous" return 1 fi fi @@ -128,7 +128,7 @@ finishInstall() { if [[ "$iso" == "$STORAGE/"* ]]; then if [[ "$aborted" != [Yy1]* ]] || [ -z "$CUSTOM" ]; then - base=$(basename $iso) + base=$(basename "$iso") echo "$base" > "$STORAGE/windows.base" fi fi