Skip to content

Commit e395687

Browse files
authored
Merge pull request #78 from trailofbits/dev-build-bins
always install ghr
2 parents 49a6980 + 68faa00 commit e395687

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.travis/install-ghr.sh

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
#!/bin/sh
22
set -o errexit -o verbose
33

4-
if test ! "$BUILD_BINARY" || test ! "$TRAVIS_TAG"
4+
if [ "$TRAVIS_OS_NAME" = "linux" ]
55
then
6-
echo 'This is not a release build.'
6+
ARCH="linux"
77
else
8-
if [ "$TRAVIS_OS_NAME" = "linux" ]
9-
then
10-
ARCH="linux"
11-
else
12-
ARCH="darwin"
13-
fi
14-
echo "Installing ghr"
15-
URL="https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_${ARCH}_386.zip"
16-
curl -L ${URL} > ghr.zip
17-
mkdir -p "$HOME/bin"
18-
export PATH="$HOME/bin:$PATH"
19-
unzip ghr.zip -d "$HOME/bin"
20-
rm ghr.zip
8+
ARCH="darwin"
219
fi
10+
11+
echo "Installing ghr"
12+
URL="https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_${ARCH}_386.zip"
13+
curl -L ${URL} > ghr.zip
14+
mkdir -p "$HOME/bin"
15+
export PATH="$HOME/bin:$PATH"
16+
unzip ghr.zip -d "$HOME/bin"
17+
rm ghr.zip

0 commit comments

Comments
 (0)