Commit f3540c98 authored by Leo's avatar Leo

apkbuild-lint: make removal of last match in grep for AL32 more robust

parent d78bc43d
......@@ -265,7 +265,7 @@ braced_variable() {
# match end-of-line or a character that can't be in the name of a variable
grep -Eo -Hn -e '\$\{[A-Za-z0-9_]+\}($|["\./\(\)= -])' "$apkbuild" |
sed "s/^\([^:]*:[^:]*:\)\(.*\)/MP:[AL32]:\1unnecesary usage of braces: \2/" |
sed 's|.$||g' # This strips the last match in the grep
sed 's|[^}]$||g' # This strips the last match in the grep
}
cpan_variable() {
......
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