Commit 8b7970bf authored by Leo's avatar Leo

make it more robust

parent 46fb8fbd
......@@ -248,7 +248,7 @@ variable_capitalized() {
braced_variable() {
[ "$SKIP_BRACED_VARIABLE" ] && return 0
[ "$SKIP_AL32" ] && return 0
scan '(^|\t+)(local )?.*[A-Za-z0-9_]*=["A-Za-z0-9_]*\$\{.*\}($|[\-"])' \
scan '(^|\t+)(local )?.*[A-Za-z0-9_]*=["A-Za-z0-9_]*\$\{[a-z_]+\}($|[\-"])' \
'unnecesary usage of braces' 'AL32' 'MC'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment