fix: Skip install when .boot file exists

This commit is contained in:
Kroese 2024-04-22 00:43:43 +02:00 committed by GitHub
parent dc2993c488
commit ff4bd4da28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -294,6 +294,13 @@ startInstall() {
html "Starting Windows..."
[ -z "$MANUAL" ] && MANUAL="N"
if skipInstall; then
BASE=""
return 1
fi
if [ -f "$STORAGE/$CUSTOM" ]; then
EXTERNAL="Y"
@ -322,8 +329,6 @@ startInstall() {
fi
fi
[ -z "$MANUAL" ] && MANUAL="N"
if [ -f "$STORAGE/$BASE" ]; then
# Check if the ISO was already processed by our script
@ -342,13 +347,6 @@ startInstall() {
EXTERNAL="Y"
CUSTOM="$BASE"
else
if skipInstall; then
BASE=""
return 1
fi
fi
rm -rf "$TMP"