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:
parent
a8b19ebfc8
commit
25e9a74e2e
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user