mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
feat: Remove quotes from version input
This commit is contained in:
parent
08f040a819
commit
0fcac03812
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,10 @@ set -Eeuo pipefail
|
||||||
: "${MANUAL:=""}"
|
: "${MANUAL:=""}"
|
||||||
: "${VERSION:="win11x64"}"
|
: "${VERSION:="win11x64"}"
|
||||||
|
|
||||||
|
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
||||||
|
VERSION="${VERSION:1:-1}"
|
||||||
|
fi
|
||||||
|
|
||||||
[[ "${VERSION,,}" == "11" ]] && VERSION="win11x64"
|
[[ "${VERSION,,}" == "11" ]] && VERSION="win11x64"
|
||||||
[[ "${VERSION,,}" == "win11" ]] && VERSION="win11x64"
|
[[ "${VERSION,,}" == "win11" ]] && VERSION="win11x64"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue