Skip to content

Commit

Permalink
builder: fix msys2
Browse files Browse the repository at this point in the history
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 e64b990
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/builder/core.sh
Expand Up @@ -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() {
Expand Down

0 comments on commit e64b990

Please sign in to comment.