diff --git a/scripts/hooks/stack/ghc-install.sh b/scripts/hooks/stack/ghc-install.sh index 34e0c0e..95d89a5 100644 --- a/scripts/hooks/stack/ghc-install.sh +++ b/scripts/hooks/stack/ghc-install.sh @@ -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)