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