diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-08-30 09:48:26 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-01 18:09:06 +0000 |
commit | cca968409b3b37049c98b760fc8a094eb777f6f9 (patch) | |
tree | d5e951cdbb8380f8717ac9b95acf197921373bcc | |
parent | db8b0e14b9b6e58f52f676263fcc3f2d84fa7d62 (diff) | |
download | chrome-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-x | util/flash_ec | 2 |
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 |