1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3:script: Fix shellcheck errors in test_smbstatus.sh

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 <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
Andreas Schneider 2022-06-08 14:47:20 +02:00 committed by Pavel Filipensky
parent a8b19ebfc8
commit 25e9a74e2e

View File

@ -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"