From c26e5219f42dabc8f4199601026f468d261a2f4c Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 10 Jun 2024 15:29:38 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/install.sh b/src/install.sh index 07edd97..b8cd8cf 100644 --- a/src/install.sh +++ b/src/install.sh @@ -616,13 +616,13 @@ updateXML() { local asset="$1" local language="$2" - local x y culture region user admin pass keyboard + local culture region user admin pass keyboard - [ -n "$YRES" ] && y="$YRES" || y="720" - [ -n "$XRES" ] && x="$XRES" || x="1280" + [ -z "$YRES" ] && YRES="720" + [ -z "$XRES" ] && XRES="1280" - sed -i "s/1080<\/VerticalResolution>/$y<\/VerticalResolution>/g" "$asset" - sed -i "s/1920<\/HorizontalResolution>/$x<\/HorizontalResolution>/g" "$asset" + sed -i "s/1080<\/VerticalResolution>/$YRES<\/VerticalResolution>/g" "$asset" + sed -i "s/1920<\/HorizontalResolution>/$XRES<\/HorizontalResolution>/g" "$asset" culture=$(getLanguage "$language" "culture")