From 4dd86376c9ccb1d201d3534d2abed8bbac502d5f Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Wed, 18 Oct 2023 00:02:46 -0500 Subject: [PATCH] install now always uses latest release and updated README with installation instructions --- README.md | 6 ++++++ install.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) mode change 100644 => 100755 install.sh 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