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

fix: Check for empty VERSION variable (#408)

parent 7e096cdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
  VERSION="${VERSION:1:-1}"
fi

VERSION=$(expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$")
[ -n "$VERSION" ] && VERSION=$(expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$")

if [ -z "$VERSION" ]; then