From e09917178de4a3c0cc61f5cbf012a33896fea42e Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Thu, 19 Apr 2018 20:00:20 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1020782 Commit-Ready: Caveh Jalali Tested-by: Caveh Jalali Reviewed-by: Aseda Aboagye --- util/flash_ec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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!" -- cgit v1.2.1