board_status: use command -v over which(1)
The script is pretty linux specific as-is, but more portability won't hurt. Change-Id: I33e18606bea4e23043d748e3fe66a345e720d389 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11151 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
1c487048a7
commit
1cbef1ce4e
|
@ -38,10 +38,10 @@ test_cmd()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" -eq "$REMOTE" ] && [ -n "$REMOTE_HOST" ]; then
|
if [ "$1" -eq "$REMOTE" ] && [ -n "$REMOTE_HOST" ]; then
|
||||||
ssh root@${REMOTE_HOST} which "$2" > /dev/null
|
ssh root@${REMOTE_HOST} command -v "$2" > /dev/null
|
||||||
rc=$?
|
rc=$?
|
||||||
else
|
else
|
||||||
which "$2" >/dev/null
|
command -v "$2" >/dev/null
|
||||||
rc=$?
|
rc=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue