feat: Allow for easier switching between versions (#1398)

When the VERSION variable is changed, it will now automaticly clean the /storage folder instead of warning the user to manually do it.
This commit is contained in:
Kroese 2025-09-17 16:17:42 +02:00 committed by GitHub
parent 05330ff64c
commit 2239792fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 53 additions and 35 deletions

View file

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