Commit a405c501 authored by Leo's avatar Leo

apkbuild-lint: revert previous bad change and make empty_variable work

parent 4c98cdaa
......@@ -83,7 +83,7 @@ pkgver_quoted() {
empty_variable() {
[ "$SKIP_EMPTY_VARIABLE" ] && return 0
scan '^[ =]*=(|""|''|)$' "variable set to empty string: \2"
scan '^[A-Za-z0-9_]*=(""|''|)$' "variable set to empty string: \2"
}
custom_variable() {
......@@ -178,7 +178,7 @@ for apkbuild; do
if [ -f "$apkbuild" ]; then
# Source apkbuild, we need some nice values
srcdir="" . ./"$apkbuild" 2>/dev/null
srcdir="" . "$apkbuild" 2>/dev/null
default_builddir_value &
unnecessary_return_1 &
......
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