32 lines
457 B
Bash
Executable File
32 lines
457 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# install GHCs
|
|
./ghcup -v install 8.2.2
|
|
./ghcup -v install 8.4.3
|
|
./ghcup -v install 8.6.1
|
|
|
|
# set GHC
|
|
./ghcup -v set 8.6.1
|
|
./ghcup -v set 8.4.3
|
|
|
|
# rm GHC
|
|
./ghcup -v rm 8.6.1
|
|
./ghcup -v rm 8.4.3
|
|
|
|
# set GHC
|
|
./ghcup -v set 8.2.2
|
|
|
|
# install cabal-install
|
|
./ghcup -v install-cabal
|
|
|
|
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
|
|
|
|
# install shellcheck
|
|
cabal update
|
|
cabal install ShellCheck
|
|
|
|
# check our script for errors
|
|
shellcheck ghcup
|