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 ff17df2 fixed install.sh
ff17df2 is described below
commit ff17df25cc0afe36aef74b6177521a97023cd092
Author: Michele Sciabarra <[email protected]>
AuthorDate: Mon Aug 5 17:22:37 2024 +0200
fixed install.sh
---
README.md | 4 ++--
install.sh | 24 ++++++++++++++++++------
2 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 045c155..b7dec69 100644
--- a/README.md
+++ b/README.md
@@ -32,9 +32,9 @@ To be implemented: quick install in Windows with PowerShell
irm bit.ly/get-ops-exe | iex
````
-# What is ops?
+# What is `ops`?
-Ops is the OpenServerless CLI.
+Well, as you can guess it helps with operations: `ops` is the OpenServerless
CLI.
It is a task executor on steroids.
diff --git a/install.sh b/install.sh
index ca1d245..5367f39 100644
--- a/install.sh
+++ b/install.sh
@@ -4,10 +4,22 @@ OS="$(uname -s)"
ARCH="$(uname -m)"
case "$OS-$ARCH" in
-(Linux-x86-64) SUFFIX="_linux_amd64" ; EXT=".tar.gz" ;;
-(Linux-arm64) SUFFIX="_linux_arm64" ; EXT=".tar.gz";;
-(Darwin-x86_64) SUFFIX="_darwin_amd64" ; EXT=".tar.gz" ;;
-(Darwin-arm64) SUFFIX="_darwin_arm64" ; EXT=".tar.gz" ;;
+(Linux-x86_64)
+ SUFFIX="_linux_amd64"
+ EXT=".tar.gz"
+;;
+(Linux-arm64)
+ SUFFIX="_linux_arm64"
+ EXT=".tar.gz"
+;;
+(Darwin-x86_64)
+ SUFFIX="_darwin_amd64"
+ EXT=".tar.gz"
+;;
+(Darwin-arm64)
+ SUFFIX="_darwin_arm64"
+ EXT=".tar.gz"
+;;
(MINGW64_NT-*) SUFFIX="_windows_amd64" ; EXT=".zip" ;;
(*) echo "unknown system"; exit 1 ;;
esac
@@ -20,8 +32,8 @@ mkdir -p ~/.local/bin
curl -sL "$URL" -o "/tmp/$FILE"
if test "$EXT" == ".zip"
-then unzip "$FILE" ops.exe -d "~/.local/bin"
-else tar xzvf "$FILE" ops -C "~/.local/bin"
+then unzip "/tmp/$FILE" ops.exe -d ~/.local/bin
+else tar xzvf "/tmp/$FILE" -C ~/.local/bin ops
fi
if ! test -e ~/.local/bin/ops*