diff options
author | Matthias Gazzari <mail@qtux.eu> | 2018-05-02 15:43:27 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-03 15:07:34 +0000 |
commit | 25c7e322e838f90f9b7d5a511ccf290860831c7d (patch) | |
tree | 1ee14e8474f6806485adf8119608a13f8836440b | |
parent | 838f296d059962196bb50db4b009d1d890cae0be (diff) | |
download | coreboot-25c7e322e838f90f9b7d5a511ccf290860831c7d.tar.xz |
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 <mail@qtux.eu>
Reviewed-on: https://review.coreboot.org/25989
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rwxr-xr-x | util/board_status/board_status.sh | 6 |
1 files 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" |