Improve stack GHC install script
This commit is contained in:
parent
9902adab6d
commit
787edc17af
@ -9,7 +9,7 @@ set -eu
|
|||||||
|
|
||||||
case $HOOK_GHC_TYPE in
|
case $HOOK_GHC_TYPE in
|
||||||
bindist)
|
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}"
|
printf "%s/ghc" "${ghcdir}"
|
||||||
;;
|
;;
|
||||||
git)
|
git)
|
||||||
|
Loading…
Reference in New Issue
Block a user