Skip to content

Commit 8433d47

Browse files
install.sh using VERSION
1 parent b229e7e commit 8433d47

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ case "$OS-$ARCH" in
5050
esac
5151

5252
OPSROOT="https://raw.githubusercontent.com/apache/openserverless-task/0.1.0/opsroot.json"
53-
VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version": "\([^"]*\)",/\1/p')"
53+
if test -z "$VERSION"
54+
then VERSION="$(curl -sL $OPSROOT | sed -n 's/^.*"version": "\([^"]*\)",/\1/p')"
55+
fi
5456
FILE="openserverless-cli_${VERSION}$SUFFIX$EXT"
5557
URL="https://github.com/apache/openserverless-cli/releases/download/v$VERSION/$FILE"
5658

0 commit comments

Comments
 (0)