revert 1f202279c9f0d11bd5d148fd77fb102d669337d2
revert Adding install script. Fixes #3
This commit is contained in:
parent
1f202279c9
commit
54736f440a
67
install.sh
67
install.sh
@ -1,67 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# shellcheck disable=SC1090
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
OS="$(uname -s)"
|
|
||||||
ARCH="$(uname -m)"
|
|
||||||
|
|
||||||
VERSION=0.2.0
|
|
||||||
|
|
||||||
case $OS in
|
|
||||||
"Linux")
|
|
||||||
case $ARCH in
|
|
||||||
"x86_64")
|
|
||||||
ARCH=amd64
|
|
||||||
;;
|
|
||||||
"aarch64")
|
|
||||||
ARCH=arm64
|
|
||||||
;;
|
|
||||||
"armv6" | "armv7l")
|
|
||||||
ARCH=armv6l
|
|
||||||
;;
|
|
||||||
"armv8")
|
|
||||||
ARCH=arm64
|
|
||||||
;;
|
|
||||||
"i686")
|
|
||||||
ARCH=386
|
|
||||||
;;
|
|
||||||
.*386.*)
|
|
||||||
ARCH=386
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
PLATFORM="linux_$ARCH"
|
|
||||||
;;
|
|
||||||
"Darwin")
|
|
||||||
case $ARCH in
|
|
||||||
"x86_64")
|
|
||||||
ARCH=amd64
|
|
||||||
;;
|
|
||||||
"arm64")
|
|
||||||
ARCH=arm64
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
PLATFORM="darwin_$ARCH"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
print_help() {
|
|
||||||
echo "Usage: bash goinstall.sh OPTIONS"
|
|
||||||
echo -e "\nOPTIONS:"
|
|
||||||
echo -e " --remove\tRemove currently installed version"
|
|
||||||
echo -e " --version\tSpecify a version number to install"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "$PLATFORM" ]; then
|
|
||||||
echo "Your operating system is not supported by the script."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if hash wget 2>/dev/null; then
|
|
||||||
wget https://git.mortons.site/verint.com/tps-cli/releases/download/${VERSION}/tps_${PLATFORM} -O "tps"
|
|
||||||
|
|
||||||
else
|
|
||||||
curl -o "tps" https://git.mortons.site/verint.com/tps-cli/releases/download/${VERSION}/tps_${PLATFORM}
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod u+x tps
|
|
||||||
Loading…
x
Reference in New Issue
Block a user