From 4edb4d979bf720b70387c6f347eab17943df933c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 3 Mar 2022 15:25:14 +0100 Subject: [PATCH] s3:script: Fix shellcheck errors in test_net_registry_roundtrip.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit source3/script/tests/test_net_registry_roundtrip.sh:51:2: error: Double quote array expansions to avoid re-splitting elements. [SC2068] source3/script/tests/test_net_registry_roundtrip.sh:55:16: error: Argument mixes string and array. Use * or separate argument. [SC2145] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- source3/script/tests/test_net_registry_roundtrip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/script/tests/test_net_registry_roundtrip.sh b/source3/script/tests/test_net_registry_roundtrip.sh index 6aeed0cd5a1..e1974c229e8 100755 --- a/source3/script/tests/test_net_registry_roundtrip.sh +++ b/source3/script/tests/test_net_registry_roundtrip.sh @@ -48,11 +48,11 @@ REGPATH="HKLM\Software\Samba" conf_roundtrip_step() { echo "CMD: $*" >>$LOG - $@ 2>>$LOG + "$@" 2>>$LOG RC=$? echo "RC: $RC" >>$LOG test "x$RC" = "x0" || { - echo "ERROR: $@ failed (RC=$RC)" | tee -a $LOG + echo "ERROR: $* failed (RC=$RC)" | tee -a $LOG } return $RC # echo -n . -- 2.47.3