From e64b99041531fb8df4c7bd7660e964ec91ed8f3a Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 16 Jul 2019 00:48:18 +0000 Subject: [PATCH] builder: fix msys2 msys2 does not `/bin/command` or `/usr/bin/command`, check for these and fall back to `/bin/sh -c "command $*"`. Signed-off-by: Rafael Kitover --- tools/builder/core.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/builder/core.sh b/tools/builder/core.sh index 05baca31..25fb383a 100644 --- a/tools/builder/core.sh +++ b/tools/builder/core.sh @@ -2909,7 +2909,13 @@ gpg() { } command() { - /bin/command "$@" + if [ -x /bin/command ]; then + /bin/command "$@" + elif [ -x /usr/bin/command ]; then + /usr/bin/command "$@" + else + /bin/sh -c "command $*" + fi } fully_resolve_link() {