feat: Remove quotes from version input

This commit is contained in:
Kroese 2024-01-23 23:50:45 +01:00 committed by GitHub
parent 08f040a819
commit 0fcac03812
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,10 @@ set -Eeuo pipefail
: "${MANUAL:=""}"
: "${VERSION:="win11x64"}"
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
VERSION="${VERSION:1:-1}"
fi
[[ "${VERSION,,}" == "11" ]] && VERSION="win11x64"
[[ "${VERSION,,}" == "win11" ]] && VERSION="win11x64"