Changed handling of unrecognized VERSION and detect absent server in meta json

For #590
This commit is contained in:
Geoff Bourne
2020-07-19 12:22:15 -05:00
parent 747c188824
commit 21ee5e2401
2 changed files with 4 additions and 4 deletions
+1 -4
View File
@@ -71,11 +71,8 @@ case "X$VERSION" in
XSNAPSHOT|Xsnapshot)
VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.snapshot')
;;
X[1-9]*)
VANILLA_VERSION=$VERSION
;;
*)
VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.release')
VANILLA_VERSION=$VERSION
;;
esac
export VANILLA_VERSION