mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Remove leading and trailing spaces from VERSION
This commit is contained in:
parent
1ebb4c8d58
commit
4b9e389def
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ parseVersion() {
|
||||||
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
||||||
VERSION="${VERSION:1:-1}"
|
VERSION="${VERSION:1:-1}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
VERSION=`expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$"`
|
||||||
[ -z "$VERSION" ] && VERSION="win11"
|
[ -z "$VERSION" ] && VERSION="win11"
|
||||||
|
|
||||||
case "${VERSION,,}" in
|
case "${VERSION,,}" in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue