We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b229e7e commit 8433d47Copy full SHA for 8433d47
1 file changed
install.sh
@@ -50,7 +50,9 @@ case "$OS-$ARCH" in
50
esac
51
52
OPSROOT="https://raw.githubusercontent.com/apache/openserverless-task/0.1.0/opsroot.json"
53
-VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version": "\([^"]*\)",/\1/p')"
+if test -z "$VERSION"
54
+then VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version": "\([^"]*\)",/\1/p')"
55
+fi
56
FILE="openserverless-cli_${VERSION}$SUFFIX$EXT"
57
URL="https://github.com/apache/openserverless-cli/releases/download/v$VERSION/$FILE"
58
0 commit comments