From 25c7e322e838f90f9b7d5a511ccf290860831c7d Mon Sep 17 00:00:00 2001 From: Matthias Gazzari Date: Wed, 2 May 2018 15:43:27 +0200 Subject: [PATCH] board_status: Remove sudo when checking for cbmem with command I get the error below when using the following command in combination with sudo: sudo command -v $SOME_COMMAND sudo: command: command not found Detection of the cbmem path is working fine without sudo. Change-Id: I8788c190ffebde117e2abd3df924c48d8f6fd05d Signed-off-by: Matthias Gazzari Reviewed-on: https://review.coreboot.org/25989 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Nico Huber --- util/board_status/board_status.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index ca7e2c7fbe..83a7200d64 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -378,10 +378,10 @@ elif [ -n "$REMOTE_HOST" ]; then else echo "Verifying that CBMEM is available" if [ $(id -u) -ne 0 ]; then - sudo command -v "$cbmem_cmd" >/dev/null + command -v "$cbmem_cmd" >/dev/null if [ $? -ne 0 ]; then - echo "Failed to run $cbmem_cmd using sudo. Check \$PATH or use -c" \ - "to specify path to cbmem binary." + echo "Failed to run $cbmem_cmd. Check \$PATH or" \ + "use -c to specify path to cbmem binary." exit $EXIT_FAILURE else cbmem_cmd="sudo $cbmem_cmd"