ghc-source-gen/.circleci/install-stack.sh

10 lines
303 B
Bash
Raw Normal View History

2019-07-10 22:11:30 +03:00
#!/bin/bash
set -xueo pipefail
mkdir -p $HOME/.local/bin
curl -L https://github.com/commercialhaskell/stack/releases/download/v2.1.1/stack-2.1.1-linux-x86_64.tar.gz \
| tar xz --wildcards --strip-components=1 -C "$HOME/.local/bin" '*/stack'
echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV