From 25e9a74e2eb95e67620d506b45d91c9a817b4843 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 8 Jun 2022 14:47:20 +0200 Subject: [PATCH] s3:script: Fix shellcheck errors in test_smbstatus.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit test_smbstatus.sh:78:22: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] test_smbstatus.sh:135:22: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- source3/script/tests/test_smbstatus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/script/tests/test_smbstatus.sh b/source3/script/tests/test_smbstatus.sh index b24fe735aa5..30ca2398fa1 100755 --- a/source3/script/tests/test_smbstatus.sh +++ b/source3/script/tests/test_smbstatus.sh @@ -75,7 +75,7 @@ EOF return fi - echo "$out" | grep "$userid[ ]*DENY_NONE" + echo "$out" | grep "${userid}[ ]*DENY_NONE" ret=$? if [ $ret != 0 ]; then echo "Failed to find userid in smbstatus locked file output" @@ -132,7 +132,7 @@ EOF return fi - echo "$out" | grep "$USERNAME[ ]*DENY_NONE" + echo "$out" | grep "${USERNAME}[ ]*DENY_NONE" ret=$? if [ $ret != 0 ]; then echo "Failed to find userid in smbstatus locked file output" -- 2.47.3