From 8ec2990580eed9e83f1e8df4fc3e671179fa9ed0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 30 Aug 2022 11:11:10 -0700 Subject: util/flash_ec: Disable shellcheck warnings These shellcheck warnings in this script don't appear to cause problems and don't have easy fixes, so we'll disable them so that flash_ec is free of any shellcheck warnings. BRANCH=none BUG=b:242127759 TEST=./util/flash_ec --board=dartmonkey Signed-off-by: Tom Hughes Change-Id: Ie5db0b19f254c41983d21c7a985bf2cd98d8140d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864979 Reviewed-by: Andrea Grandi --- util/flash_ec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/flash_ec b/util/flash_ec index 7158feedc8..e5fc54b527 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -719,6 +719,7 @@ elif [[ -d "${HOME}/trunk/src/platform/ec" ]]; then else info "Could not find ec build folder to calculate baseboard." fi +# shellcheck disable=SC2181 if [ $? -ne 0 ]; then info "EC build system didn't recognize ${BOARD}. Assuming no baseboard." fi @@ -1037,6 +1038,7 @@ function flash_flashrom() { fi # Generate the correct flashrom command base. + # shellcheck disable=SC2206 FLASHROM_CMDLINE="${FLASHROM} ${FLASHROM_ARGS}" if [[ -z "${FLAGS_read}" ]]; then # Program EC image. -- cgit v1.2.1