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 b060f2a fixing debian and aliasing nuv
b060f2a is described below
commit b060f2a769c2615137e8e9a64ee653f579ba536e
Author: Michele Sciabarra <[email protected]>
AuthorDate: Fri Jan 3 20:30:46 2025 +0100
fixing debian and aliasing nuv
---
install.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/install.sh b/install.sh
index 2e544a4..9bcf489 100644
--- a/install.sh
+++ b/install.sh
@@ -22,10 +22,14 @@ ARCH="$(uname -m)"
CMD="ops"
case "$OS-$ARCH" in
-(Linux-x86_64)
+(Linux-x86_64)
SUFFIX="_linux_amd64"
EXT=".tar.gz"
;;
+(Linux-aarch64)
+ SUFFIX="_linux_arm64"
+ EXT=".tar.gz"
+;;
(Linux-arm64)
SUFFIX="_linux_arm64"
EXT=".tar.gz"
@@ -66,12 +70,15 @@ else
tar xzvf "/tmp/$FILE" -C ~/.local/bin "$CMD"
fi
+
if ! test -e ~/.local/bin/ops*
then echo "cannot install ops - download and unpack it in a folder in the path
from here:"
echo "$URL"
exit 1
fi
+ln -sf ~/.local/bin/ops ~/.local/bin/nuv
+
if ! which ops | grep $HOME/.local/bin
then
echo "$HOME/.local/bin is not in the path - adding it"