Skip to content

Commit 2d98437

Browse files
install lastest script
1 parent 8433d47 commit 2d98437

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

install-latest.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
if jq --version >/dev/null
4+
then
5+
LATEST=https://api.github.com/repos/apache/openserverless-cli/releases/latest
6+
VERSION=$(curl -s "$LATEST" | jq -r '.name | .[1:]')
7+
curl -sL bit.ly/get-ops | VERSION=$VERSION bash
8+
else
9+
echo "Sorry for the annoyance, but I need jq installed to run..."
10+
fi

0 commit comments

Comments
 (0)