From 1cbef1ce4ed3ab3ef247537bbd10ed1afb2bc3a3 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 10 Aug 2015 10:21:14 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/11151 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Paul Menzel --- util/board_status/board_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/board_status') 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 -- cgit v1.2.3