ghc-source-gen/.circleci/install-stack.sh
2019-07-10 12:11:30 -07:00

10 lines
303 B
Bash
Executable File

#!/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