mirror of
https://github.com/Yvee1/hascard.git
synced 2024-11-25 20:33:34 +03:00
18 lines
422 B
Bash
18 lines
422 B
Bash
|
set -o errexit -o verbose
|
||
|
|
||
|
if test -f "$HOME/.local/bin/stack"
|
||
|
then
|
||
|
echo 'Stack is already installed.'
|
||
|
else
|
||
|
echo "Installing Stack for $TRAVIS_OS_NAME..."
|
||
|
URL="https://www.stackage.org/stack/$TRAVIS_OS_NAME-x86_64"
|
||
|
curl --location "$URL" > stack.tar.gz
|
||
|
gunzip stack.tar.gz
|
||
|
tar -x -f stack.tar --strip-components 1
|
||
|
mkdir -p "$HOME/.local/bin"
|
||
|
mv stack "$HOME/.local/bin/"
|
||
|
rm stack.tar
|
||
|
fi
|
||
|
|
||
|
stack --version
|