diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2015-08-10 10:21:14 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-08-10 22:19:01 +0200 |
commit | 1cbef1ce4ed3ab3ef247537bbd10ed1afb2bc3a3 (patch) | |
tree | 17fbdc0900cd007d7f60ccb0f005b4b91674789f /util/board_status | |
parent | 1c487048a796ae8b5c45b0ee2a3e4aa8d63dabe8 (diff) |
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>
Diffstat (limited to 'util/board_status')
-rwxr-xr-x | util/board_status/board_status.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index ec98277aea..14d6514e5b 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -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 |