Skip to content

Commit

Permalink
Fixed installation scripts to output the correct versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanHabic committed Mar 12, 2019
1 parent a3bbe5b commit 95d7446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEW_VERSION="$(curl -s https://api.github.com/repos/Tenderly/tenderly-cli/releas
EXISTS="$(command -v tenderly)"

if [ "$EXISTS" != "" ]; then
CUR_VERSION="$(tenderly version | cut -d'v' -f3)"
CUR_VERSION="$(tenderly version | sed -n 1p | cut -d'v' -f3)"
echo "\nCurrent Version: $CUR_VERSION => New Version: $NEW_VERSION\n"
fi

Expand Down Expand Up @@ -35,7 +35,7 @@ if [ "$NEW_VERSION" != "$CUR_VERSION" ]; then
location="$(which tenderly)"
echo "Tenderly CLI installed to: $location\n"

version="$(tenderly version | cut -d'v' -f3)"
version="$(tenderly version | sed -n 1p | cut -d'v' -f3)"
echo "New Tenderly version installed: $version\n"

else
Expand Down
4 changes: 2 additions & 2 deletions scripts/install-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEW_VERSION="$(curl -s https://api.github.com/repos/Tenderly/tenderly-cli/releas
EXISTS="$(command -v tenderly)"

if [ "$EXISTS" != "" ]; then
CUR_VERSION="$(tenderly version | cut -d'v' -f3)"
CUR_VERSION="$(tenderly version | sed -n 1p | cut -d'v' -f3)"
echo "\nCurrent Version: $CUR_VERSION => New Version: $NEW_VERSION\n"
fi

Expand Down Expand Up @@ -35,7 +35,7 @@ if [ "$NEW_VERSION" != "$CUR_VERSION" ]; then
location="$(which tenderly)"
echo "Tenderly CLI installed to: $location\n"

version="$(tenderly version | cut -d'v' -f3)"
version="$(tenderly version | sed -n 1p | cut -d'v' -f3)"
echo "New Tenderly version installed: $version\n"

else
Expand Down

0 comments on commit 95d7446

Please sign in to comment.