Unverified Commit 7b4404db authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Improve version string trimming (#1738)

parent 2412a3ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -24,7 +24,9 @@ parseVersion() {
    VERSION="${VERSION:1:-1}"
  fi

  [ -n "$VERSION" ] && VERSION=$(expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$")
  VERSION="${VERSION#"${VERSION%%[! ]*}"}"
  VERSION="${VERSION%"${VERSION##*[! ]}"}"

  [ -z "$VERSION" ] && VERSION="win11"

  case "${VERSION,,}" in