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:
Patrick Georgi 2015-08-10 10:21:14 +02:00 committed by Patrick Georgi
parent 1c487048a7
commit 1cbef1ce4e
1 changed files with 2 additions and 2 deletions

View File

@ -38,10 +38,10 @@ test_cmd()
fi
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=$?
else
which "$2" >/dev/null
command -v "$2" >/dev/null
rc=$?
fi