From 787edc17af4907dbc51c85e25c490edd8d68b80b Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 30 Sep 2022 13:59:43 +0800 Subject: [PATCH] Improve stack GHC install script --- scripts/hooks/stack/ghc-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)