diff --git a/README.md b/README.md index 741fb6e..32296b8 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,9 @@ Using config file: /Users/Peter.Morton/.tps.yaml ## Building make + +## Installing + +```shell +curl -sSL https://git.mortons.site/verint.com/tps-cli/raw/branch/main/install.sh | bash +``` diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index be22bb0..fc0c42c --- a/install.sh +++ b/install.sh @@ -57,11 +57,15 @@ if [ -z "$PLATFORM" ]; then exit 1 fi +# get latest tag path +TAG_PATH="$(curl -s https://git.mortons.site/verint.com/tps-cli/releases/latest | sed -n 's/^/dev/null; then - wget https://git.mortons.site/verint.com/tps-cli/releases/download/${VERSION}/tps_${PLATFORM} -O "tps" + wget https://git.mortons.site${TAG_PATH}/tps_${PLATFORM} -O "tps" else - curl -o "tps" https://git.mortons.site/verint.com/tps-cli/releases/download/${VERSION}/tps_${PLATFORM} + curl -o "tps" https://git.mortons.site${TAG_PATH}/tps_${PLATFORM} fi chmod u+x tps