From 2d8ef284a8abc5e6870f008917ca81d7a6836c9a Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 21 May 2024 08:34:15 +0200 Subject: [PATCH] Update define.sh --- src/define.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/define.sh b/src/define.sh index c0cf071..0f813ac 100644 --- a/src/define.sh +++ b/src/define.sh @@ -17,8 +17,6 @@ PLATFORM="ARM64" parseVersion() { - VERSION="${VERSION/\//}" - if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then VERSION="${VERSION:1:-1}" fi @@ -216,7 +214,7 @@ getLanguage() { parseLanguage() { - LANGUAGE="${LANGUAGE/_/-/}" + LANGUAGE="${LANGUAGE//_/-/}" [ -z "$LANGUAGE" ] && LANGUAGE="en" case "${LANGUAGE,,}" in @@ -312,7 +310,7 @@ fromFile() { local file="${1,,}" local arch="${PLATFORM,,}" - case "${file/ /_}" in + case "${file// /_}" in *"_x64_"* | *"_x64."*) arch="x64" ;; @@ -324,7 +322,7 @@ fromFile() { ;; esac - case "${file/ /_}" in + case "${file// /_}" in "win10"*| "win_10"* | *"windows10"* | *"windows_10"* ) id="win10${arch}" ;;