source4/script/find_unused_options.sh:20:16: error: Use braces when
expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087]
source4/script/find_unused_options.sh:30:16: 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>
key=$(echo $i | cut -d ':' -f1)
val=$(echo $i | cut -d ':' -f2)
- found=$(grep "$key[ ]*()" $CFILES)
+ found=$(grep "${key}[ ]*()" $CFILES)
if test -z "$found"; then
echo "Not Used Global: $key() -> $val"
fi
key=$(echo $i | cut -d ':' -f1)
val=$(echo $i | cut -d ':' -f2)
- found=$(grep "$key[ ]*(" $CFILES)
+ found=$(grep "${key}[ ]*(" $CFILES)
if test -z "$found"; then
echo "Not Used LOCAL: $key() -> $val"