Skip to content
Permalink
Browse files

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 <rkitover@gmail.com>
  • Loading branch information
rkitover committed Jul 16, 2019
1 parent 5802207 commit e64b99041531fb8df4c7bd7660e964ec91ed8f3a
Showing with 7 additions and 1 deletion.
  1. +7 −1 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() {

0 comments on commit e64b990

Please sign in to comment.
You can’t perform that action at this time.