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