From cca968409b3b37049c98b760fc8a094eb777f6f9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 30 Aug 2022 09:48:26 -0700 Subject: 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 Change-Id: Ib02bad6289f08b252a7e3e542e0f18240d6c91cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864974 Reviewed-by: Andrea Grandi --- util/flash_ec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1