fix: Manual mode

This commit is contained in:
Kroese 2024-01-17 02:19:39 +01:00 committed by GitHub
parent f964144cb2
commit 1d36c8c6e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -Eeuo pipefail set -Eeuo pipefail
: "${MANUAL:="N"}"
: "${EXTERNAL:="N"}" : "${EXTERNAL:="N"}"
: "${ATTENDED:="N"}"
: "${VERSION:="win11x64"}" : "${VERSION:="win11x64"}"
ARGUMENTS="-chardev socket,id=chrtpm,path=/dev/shm/emulated_tpm/swtpm-sock $ARGUMENTS" ARGUMENTS="-chardev socket,id=chrtpm,path=/dev/shm/emulated_tpm/swtpm-sock $ARGUMENTS"
@ -139,7 +139,7 @@ rm -rf "$DIR"
7z x "$ISO" -o"$DIR" 7z x "$ISO" -o"$DIR"
if [[ "$ATTENDED" != [Yy1]* ]]; then if [[ "$MANUAL" != [Yy1]* ]]; then
if [[ "$EXTERNAL" != [Yy1]* ]]; then if [[ "$EXTERNAL" != [Yy1]* ]]; then
if [ -f "/run/assets/$VERSION.xml" ]; then if [ -f "/run/assets/$VERSION.xml" ]; then