Skip to content

Commit 1a46e73

Browse files
authored
Update define.sh
1 parent 95ef200 commit 1a46e73

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/define.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

4-
: "${XRES:=""}"
5-
: "${YRES:=""}"
4+
: "${WIDTH:=""}"
5+
: "${HEIGHT:=""}"
66
: "${VERIFY:=""}"
77
: "${REGION:=""}"
88
: "${MANUAL:=""}"
@@ -2123,11 +2123,11 @@ prepareInstall() {
21232123
local install="$dir/\$OEM\$/\$1/OEM/install.bat"
21242124
[ -f "$install" ] && oem="\"Script\"=\"cmd /C start \\\"Install\\\" \\\"cmd /C C:\\\\OEM\\\\install.bat\\\"\""
21252125

2126-
[ -z "$YRES" ] && YRES="720"
2127-
[ -z "$XRES" ] && XRES="1280"
2126+
[ -z "$WIDTH" ] && WIDTH="1280"
2127+
[ -z "$HEIGHT" ] && HEIGHT="720"
21282128

2129-
XHEX=$(printf '%x\n' "$XRES")
2130-
YHEX=$(printf '%x\n' "$YRES")
2129+
XHEX=$(printf '%x\n' "$WIDTH")
2130+
YHEX=$(printf '%x\n' "$HEIGHT")
21312131

21322132
local username="Docker"
21332133
local password="*"
@@ -2179,8 +2179,8 @@ prepareInstall() {
21792179
echo ""
21802180
echo "[Display]"
21812181
echo " BitsPerPel=32"
2182-
echo " XResolution=$XRES"
2183-
echo " YResolution=$YRES"
2182+
echo " XResolution=$WIDTH"
2183+
echo " YResolution=$HEIGHT"
21842184
echo ""
21852185
echo "[Networking]"
21862186
echo " InstallDefaultComponents=Yes"

0 commit comments

Comments
 (0)