Compare commits
2 Commits
33e74b9758
...
feat-fix-i
Author | SHA1 | Date | |
---|---|---|---|
584bcc6033
|
|||
aeff9215aa
|
10
install.sh
10
install.sh
@@ -4,8 +4,6 @@
|
||||
# Can be launched with the following command:
|
||||
# sh <(curl -sSL https://raw.githubusercontent.com/Katenary/katenary/master/install.sh)
|
||||
|
||||
set -e
|
||||
|
||||
# Detect the OS and architecture
|
||||
OS=$(uname)
|
||||
ARCH=$(uname -m)
|
||||
@@ -21,10 +19,10 @@ done
|
||||
# - $HOME/.local/bin
|
||||
# - $HOME/.bin
|
||||
# - $HOME/bin
|
||||
COMON_INSTALL_PATHS="$HOME/.local/bin $HOME/.bin $HOME/bin"
|
||||
COMMON_INSTALL_PATHS="$HOME/.local/bin $HOME/.bin $HOME/bin"
|
||||
|
||||
INSTALL_PATH=""
|
||||
for p in $COMON_INSTALL_PATHS; do
|
||||
for p in $COMMON_INSTALL_PATHS; do
|
||||
if [ -d $p ]; then
|
||||
INSTALL_PATH=$p
|
||||
break
|
||||
@@ -51,8 +49,8 @@ fi
|
||||
|
||||
# Where to download the binary
|
||||
TAG=$(curl -sLf https://repo.katenary.io/api/v1/repos/katenary/katenary/releases/latest 2>/dev/null | grep -Po '"tag_name":\s*"[^"]*"' | cut -d ":" -f2 | tr -d '"')
|
||||
TAG=3.0.0-rc7
|
||||
# for compatibility with older ARM versions
|
||||
|
||||
# use the right names for the OS and architecture
|
||||
if [ $ARCH = "x86_64" ]; then
|
||||
ARCH="amd64"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user