From ae263ac2827cf327c45461b16de2daa5d6993b43 Mon Sep 17 00:00:00 2001
From: George Wilson <george@wils.online>
Date: Wed, 20 Feb 2019 13:18:22 +1000
Subject: [PATCH] Unquote invocations in emake

---
 ghcup | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

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