feat: Remove leading and trailing spaces from VERSION (#1392)

This commit is contained in:
Kroese 2025-09-15 14:20:29 +02:00 committed by GitHub
parent 1ebb4c8d58
commit 1c15df95ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,8 @@ parseVersion() {
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
VERSION="${VERSION:1:-1}"
fi
VERSION=`expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$"`
[ -z "$VERSION" ] && VERSION="win11"
case "${VERSION,,}" in