Improve stack GHC install script

This commit is contained in:
Julian Ospald 2022-09-30 13:59:43 +08:00
parent 9902adab6d
commit 787edc17af
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -9,7 +9,7 @@ set -eu
case $HOOK_GHC_TYPE in
bindist)
ghcdir=$(ghcup run --ghc "$HOOK_GHC_VERSION" --install) || exit 3
ghcdir=$(ghcup whereis --directory ghc "$HOOK_GHC_VERSION" || ghcup run --ghc "$HOOK_GHC_VERSION" --install) || exit 3
printf "%s/ghc" "${ghcdir}"
;;
git)