Skip to content

Commit

Permalink
Merge branch 'issue-913'
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Nov 6, 2023
2 parents 2c3148a + 6aa4865 commit 94b4b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/hooks/stack/ghc-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ set -eu

case $HOOK_GHC_TYPE in
bindist)
ghcdir=$(ghcup whereis --directory ghc "$HOOK_GHC_VERSION" || ghcup run --ghc "$HOOK_GHC_VERSION" --install) || exit 3
printf "%s/ghc" "${ghcdir}"
ghc_path=$(ghcup whereis ghc "$HOOK_GHC_VERSION" || { ghcup install ghc "$HOOK_GHC_VERSION" >/dev/null && ghcup whereis ghc "$HOOK_GHC_VERSION" ; }) || { >&2 echo "Installing $HOOK_GHC_VERSION via ghcup failed" exit 3 ;}
printf "%s" "${ghc_path}"
;;
git)
# TODO: should be somewhat possible
Expand Down

0 comments on commit 94b4b7c

Please sign in to comment.