Unquote invocations in emake

This commit is contained in:
George Wilson 2019-02-20 13:18:22 +10:00
parent 35bd1c04db
commit ae263ac282

15
ghcup
View File

@ -459,16 +459,17 @@ edo()
# Wrapper around 'make', may call 'gmake' if it exists. # Wrapper around 'make', may call 'gmake' if it exists.
emake() { # avoid re-checking for gmake emake() { # avoid re-checking for gmake
if [ -n "${MAKE}" ] ; then if [ -n "${MAKE}" ] ; then
edo "${MAKE}" "$@" # shellcheck disable=SC2086
edo ${MAKE} "$@"
else else
if command_exists gmake ; then if command_exists gmake ; then
# shellcheck disable=SC2209 MAKE="gmake"
MAKE=gmake # shellcheck disable=SC2086
edo "${MAKE}" "$@" edo ${MAKE} "$@"
else else
# shellcheck disable=SC2209 MAKE="make"
MAKE=make # shellcheck disable=SC2086
edo "${MAKE}" "$@" edo ${MAKE} "$@"
fi fi
fi fi
} }