From 68faa0085ce3bc7e072dccbc6b955466549cc5de Mon Sep 17 00:00:00 2001 From: JP Smith Date: Thu, 12 Jul 2018 13:56:04 -0400 Subject: [PATCH] always install ghr --- .travis/install-ghr.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.travis/install-ghr.sh b/.travis/install-ghr.sh index 0dd3b7490..c0f0c1df8 100755 --- a/.travis/install-ghr.sh +++ b/.travis/install-ghr.sh @@ -1,21 +1,17 @@ #!/bin/sh set -o errexit -o verbose -if test ! "$BUILD_BINARY" || test ! "$TRAVIS_TAG" +if [ "$TRAVIS_OS_NAME" = "linux" ] then - echo 'This is not a release build.' + ARCH="linux" else - if [ "$TRAVIS_OS_NAME" = "linux" ] - then - ARCH="linux" - else - ARCH="darwin" - fi - echo "Installing ghr" - URL="https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_${ARCH}_386.zip" - curl -L ${URL} > ghr.zip - mkdir -p "$HOME/bin" - export PATH="$HOME/bin:$PATH" - unzip ghr.zip -d "$HOME/bin" - rm ghr.zip + ARCH="darwin" fi + +echo "Installing ghr" +URL="https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_${ARCH}_386.zip" +curl -L ${URL} > ghr.zip +mkdir -p "$HOME/bin" +export PATH="$HOME/bin:$PATH" +unzip ghr.zip -d "$HOME/bin" +rm ghr.zip