Update define.sh
This commit is contained in:
parent
3312c5a051
commit
2d8ef284a8
1 changed files with 3 additions and 5 deletions
|
|
@ -17,8 +17,6 @@ PLATFORM="ARM64"
|
||||||
|
|
||||||
parseVersion() {
|
parseVersion() {
|
||||||
|
|
||||||
VERSION="${VERSION/\//}"
|
|
||||||
|
|
||||||
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
||||||
VERSION="${VERSION:1:-1}"
|
VERSION="${VERSION:1:-1}"
|
||||||
fi
|
fi
|
||||||
|
|
@ -216,7 +214,7 @@ getLanguage() {
|
||||||
|
|
||||||
parseLanguage() {
|
parseLanguage() {
|
||||||
|
|
||||||
LANGUAGE="${LANGUAGE/_/-/}"
|
LANGUAGE="${LANGUAGE//_/-/}"
|
||||||
[ -z "$LANGUAGE" ] && LANGUAGE="en"
|
[ -z "$LANGUAGE" ] && LANGUAGE="en"
|
||||||
|
|
||||||
case "${LANGUAGE,,}" in
|
case "${LANGUAGE,,}" in
|
||||||
|
|
@ -312,7 +310,7 @@ fromFile() {
|
||||||
local file="${1,,}"
|
local file="${1,,}"
|
||||||
local arch="${PLATFORM,,}"
|
local arch="${PLATFORM,,}"
|
||||||
|
|
||||||
case "${file/ /_}" in
|
case "${file// /_}" in
|
||||||
*"_x64_"* | *"_x64."*)
|
*"_x64_"* | *"_x64."*)
|
||||||
arch="x64"
|
arch="x64"
|
||||||
;;
|
;;
|
||||||
|
|
@ -324,7 +322,7 @@ fromFile() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${file/ /_}" in
|
case "${file// /_}" in
|
||||||
"win10"*| "win_10"* | *"windows10"* | *"windows_10"* )
|
"win10"*| "win_10"* | *"windows10"* | *"windows_10"* )
|
||||||
id="win10${arch}"
|
id="win10${arch}"
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue