Skip to content

Commit

Permalink
Update define.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 15, 2024
1 parent 95ef200 commit 1a46e73
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/define.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -Eeuo pipefail

: "${XRES:=""}"
: "${YRES:=""}"
: "${WIDTH:=""}"
: "${HEIGHT:=""}"
: "${VERIFY:=""}"
: "${REGION:=""}"
: "${MANUAL:=""}"
Expand Down Expand Up @@ -2123,11 +2123,11 @@ prepareInstall() {
local install="$dir/\$OEM\$/\$1/OEM/install.bat"
[ -f "$install" ] && oem="\"Script\"=\"cmd /C start \\\"Install\\\" \\\"cmd /C C:\\\\OEM\\\\install.bat\\\"\""

[ -z "$YRES" ] && YRES="720"
[ -z "$XRES" ] && XRES="1280"
[ -z "$WIDTH" ] && WIDTH="1280"
[ -z "$HEIGHT" ] && HEIGHT="720"

XHEX=$(printf '%x\n' "$XRES")
YHEX=$(printf '%x\n' "$YRES")
XHEX=$(printf '%x\n' "$WIDTH")
YHEX=$(printf '%x\n' "$HEIGHT")

local username="Docker"
local password="*"
Expand Down Expand Up @@ -2179,8 +2179,8 @@ prepareInstall() {
echo ""
echo "[Display]"
echo " BitsPerPel=32"
echo " XResolution=$XRES"
echo " YResolution=$YRES"
echo " XResolution=$WIDTH"
echo " YResolution=$HEIGHT"
echo ""
echo "[Networking]"
echo " InstallDefaultComponents=Yes"
Expand Down

0 comments on commit 1a46e73

Please sign in to comment.