flash_ec: remove redundant sudo
we were invoking flashrom as "sudo sudo flashrom", so remove
the gratuitous sudo.
BRANCH=none
TEST=used flash_ec to flash atlas
Commit-Ready: Caveh Jalali
Tested-by: Caveh Jalali
@@ -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!"
