Skip to content

Commit

Permalink
Merge pull request #78 from trailofbits/dev-build-bins
Browse files Browse the repository at this point in the history
always install ghr
  • Loading branch information
japesinator committed Jul 12, 2018
2 parents 49a6980 + 68faa00 commit e395687
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .travis/install-ghr.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e395687

Please sign in to comment.