This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git
The following commit(s) were added to refs/heads/main by this push:
new 8433d47 install.sh using VERSION
8433d47 is described below
commit 8433d473da730b83ec5cc6196c1a4f12f70b4b5a
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Aug 11 16:59:05 2024 +0200
install.sh using VERSION
---
install.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/install.sh b/install.sh
index a268111..2e544a4 100644
--- a/install.sh
+++ b/install.sh
@@ -50,7 +50,9 @@ case "$OS-$ARCH" in
esac
OPSROOT="https://raw.githubusercontent.com/apache/openserverless-task/0.1.0/opsroot.json"
-VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version": "\([^"]*\)",/\1/p')"
+if test -z "$VERSION"
+then VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version":
"\([^"]*\)",/\1/p')"
+fi
FILE="openserverless-cli_${VERSION}$SUFFIX$EXT"
URL="https://github.com/apache/openserverless-cli/releases/download/v$VERSION/$FILE"