mirror of
https://github.com/Yvee1/hascard.git
synced 2024-11-25 20:33:34 +03:00
21 lines
450 B
Bash
21 lines
450 B
Bash
set -o errexit -o verbose
|
|
|
|
if test ! "$TRAVIS_TAG"
|
|
then
|
|
echo 'This is not a release build.'
|
|
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
|
|
fi
|