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 2d98437  install lastest script
2d98437 is described below

commit 2d98437a84d804cfc2c4ad30824e9c474066e156
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Aug 11 17:00:27 2024 +0200

    install lastest script
---
 install-latest.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/install-latest.sh b/install-latest.sh
new file mode 100644
index 0000000..0d9c5f2
--- /dev/null
+++ b/install-latest.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if jq --version >/dev/null
+then 
+    
LATEST=https://api.github.com/repos/apache/openserverless-cli/releases/latest
+    VERSION=$(curl -s  "$LATEST" | jq -r '.name | .[1:]')
+    curl -sL bit.ly/get-ops | VERSION=$VERSION bash
+else 
+    echo "Sorry for the annoyance, but I need jq installed to run..."
+fi
\ No newline at end of file

Reply via email to