diff --git a/ghcup b/ghcup index 769cd2db8cd3de8cecbfe248dbe1ea398a2b1642..9652d6a8f9af910d61d6effde1900d7684b150bf 100755 --- a/ghcup +++ b/ghcup @@ -459,14 +459,16 @@ edo() # Wrapper around 'make', may call 'gmake' if it exists. emake() { # avoid re-checking for gmake if [ -n "${MAKE}" ] ; then - edo ${MAKE} "$@" + edo "${MAKE}" "$@" else if command_exists gmake ; then + # shellcheck disable=SC2209 MAKE=gmake - edo ${MAKE} "$@" + edo "${MAKE}" "$@" else + # shellcheck disable=SC2209 MAKE=make - edo ${MAKE} "$@" + edo "${MAKE}" "$@" fi fi }