fix: Custom URL parsing (#528)

This commit is contained in:
Kroese 2024-05-22 00:53:19 +02:00 committed by GitHub
parent 98204e54ef
commit b1f10aa546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 14 deletions

View file

@ -17,8 +17,6 @@ PLATFORM="x64"
parseVersion() {
VERSION="${VERSION/\//}"
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
VERSION="${VERSION:1:-1}"
fi
@ -295,9 +293,9 @@ getLanguage() {
parseLanguage() {
REGION="${REGION/_/-/}"
KEYBOARD="${KEYBOARD/_/-/}"
LANGUAGE="${LANGUAGE/_/-/}"
REGION="${REGION//_/-/}"
KEYBOARD="${KEYBOARD//_/-/}"
LANGUAGE="${LANGUAGE//_/-/}"
[ -z "$LANGUAGE" ] && LANGUAGE="en"
@ -443,7 +441,7 @@ fromFile() {
local file="${1,,}"
local arch="${PLATFORM,,}"
case "${file/ /_}" in
case "${file// /_}" in
*"_x64_"* | *"_x64."*)
arch="x64"
;;
@ -455,7 +453,7 @@ fromFile() {
;;
esac
case "${file/ /_}" in
case "${file// /_}" in
"win7"* | "win_7"* | *"windows7"* | *"windows_7"* )
id="win7${arch}"
;;
@ -2062,7 +2060,7 @@ prepareXP() {
echo ""
echo "[TerminalServices]"
echo " AllowConnections=1"
echo ""
echo ""
} | unix2dos > "$target/WINNT.SIF"
{ echo "Windows Registry Editor Version 5.00"