summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-08-30 09:48:26 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-01 18:09:06 +0000
commitcca968409b3b37049c98b760fc8a094eb777f6f9 (patch)
treed5e951cdbb8380f8717ac9b95acf197921373bcc
parentdb8b0e14b9b6e58f52f676263fcc3f2d84fa7d62 (diff)
downloadchrome-ec-cca968409b3b37049c98b760fc8a094eb777f6f9.tar.gz
util/flash_ec: Fix shellcheck warning
"${DUT_CTRL_PREFIX}$@" )" ^-- SC2145: Argument mixes string and array. Use * or separate argument. BRANCH=none BUG=b:242127759 TEST=./util/flash_ec --board=dartmonkey Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ib02bad6289f08b252a7e3e542e0f18240d6c91cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864974 Reviewed-by: Andrea Grandi <agrandi@google.com>
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 46dc166ea3..caa9861007 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -799,7 +799,7 @@ function servo_save_add() {
local CTRL_RESULT=
case $# in
1) CTRL_RESULT="$( "${DUT_CONTROL_CMD[@]}" \
- "${DUT_CTRL_PREFIX}$@" )"
+ "${DUT_CTRL_PREFIX}$*" )"
if [[ -n "${CTRL_RESULT}" ]]; then
# Don't save the control with the prefix, because
# dut_control will add the prefix again when we restore