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>
This commit is contained in:
parent
5802207829
commit
e64b990415
|
@ -2909,7 +2909,13 @@ gpg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
command() {
|
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() {
|
fully_resolve_link() {
|
||||||
|
|
Loading…
Reference in New Issue