From c81eceaf6f13c8d8d6f046d034ebd66bf5c58987 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 21 Sep 2025 15:06:59 +0200 Subject: [PATCH] fix: Simplify conditional check --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index e89f3c9..d32b128 100644 --- a/src/install.sh +++ b/src/install.sh @@ -27,7 +27,7 @@ FILE=$(find / -maxdepth 1 -type f -iname "$FN" -print -quit) [ ! -s "$FILE" ] && FILE=$(find "$STORAGE" -maxdepth 1 -type f -iname "$FN" -print -quit) [ -s "$FILE" ] && BASE="DSM_VirtualDSM" && URL="file://$FILE" -if [ -n "$URL" ] && [ ! -s "$FILE" ] && [ ! -d "$DIR" ]; then +if [ -n "$URL" && ! -s "$FILE" && ! -d "$DIR" ]; then BASE=$(basename "$URL" .pat) if [ ! -s "$STORAGE/$BASE.system.img" ]; then BASE=$(basename "${URL%%\?*}" .pat)