From 05ebe7cde6a6e8aaa462de565ede93247f786d93 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Apr 2024 13:16:32 +0200 Subject: [PATCH] fix: Check if ISO is writeable --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 1454b7c..ff0e925 100644 --- a/src/install.sh +++ b/src/install.sh @@ -344,7 +344,7 @@ startInstall() { magic=$(dd if="$STORAGE/$BASE" seek=0 bs=1 count=1 status=none | tr -d '\000') magic="$(printf '%s' "$magic" | od -A n -t x1 -v | tr -d ' \n')" - if [[ "$magic" == "16" ]]; then + if [[ "$magic" == "16" ]] || [ ! -w "$STORAGE/$BASE" ]; then if hasDisk || [[ "$MANUAL" == [Yy1]* ]]; then return 1