Update install.sh

This commit is contained in:
Kroese 2024-05-05 12:01:46 +02:00 committed by GitHub
parent 3913b789bb
commit a37013ffe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,9 +65,10 @@ startInstall() {
local magic=""
magic=$(dd if="$ISO" seek=0 bs=1 count=1 status=none | tr -d '\000')
magic="$(printf '%s' "$magic" | od -A n -t x1 -v | tr -d ' \n')"
[[ "$magic" == "16" ]] && return 1
fi
if [ -z "$CUSTOM" ]; then
rm -f "$ISO"
else
@ -78,8 +79,6 @@ startInstall() {
fi
fi
fi
rm -rf "$TMP"
mkdir -p "$TMP"