diff options
author | Caveh Jalali <caveh@chromium.org> | 2018-04-19 20:00:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-20 23:01:26 -0700 |
commit | e09917178de4a3c0cc61f5cbf012a33896fea42e (patch) | |
tree | 63a30aef905944b28134bb494ab7b9a496192d6b /util | |
parent | a59d855c4742e681944e2ac328bca7e3fc47d7d0 (diff) | |
download | chrome-ec-e09917178de4a3c0cc61f5cbf012a33896fea42e.tar.gz |
flash_ec: remove redundant sudo
we were invoking flashrom as "sudo sudo flashrom", so remove
the gratuitous sudo.
BUG=none
BRANCH=none
TEST=used flash_ec to flash atlas
Change-Id: I420ada94c4b973c8f7efe546670dd04cfbb1b234
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1020782
Commit-Ready: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index b25a23c192..d5e922b1da 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -710,7 +710,7 @@ function flash_flashrom() { echo "Running flashrom:" 1>&2 echo " ${FLASHROM_CMDLINE}" 1>&2 fi - SPI_SIZE=$(sudo ${FLASHROM_CMDLINE} 2>/dev/null |\ + SPI_SIZE=$(${FLASHROM_CMDLINE} 2>/dev/null |\ grep -oe '[0-9]\+$') || \ die "Failed to determine chip size!" (( SPI_SIZE == 0 )) && die "Chip size is 0!" |