Update install.sh

This commit is contained in:
Kroese 2024-05-05 20:55:35 +02:00 committed by GitHub
parent afd3c867be
commit c777beb001
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,29 +70,28 @@ startInstall() {
fi
if [ -z "$CUSTOM" ]; then
rm -f "$ISO"
BOOT="$ISO"
ISO=$(basename "$ISO")
ISO="$TMP/$ISO"
else
if [ -n "$ORIGINAL" ]; then
rm -f "$ISO"
ISO="$ORIGINAL"
CUSTOM="$ISO"
fi
fi
rm -rf "$TMP"
mkdir -p "$TMP"
if [ -n "$CUSTOM" ]; then
local size
size="$(stat -c%s "$ISO")"
BOOT="$STORAGE/windows.$size.iso"
else
BOOT="$ISO"
ISO=$(basename "$ISO")
ISO="$TMP/$ISO"
fi
rm -f "$BOOT"
rm -rf "$TMP"
mkdir -p "$TMP"
return 0
}
@ -195,7 +194,6 @@ detectCustom() {
CUSTOM="$base"
ORIGINAL="$file"
else
REMOVE="N"
CUSTOM="$file"
rm -f "$base"
fi