scripts/*: fix quoting and rm antiqe expr condition

This commit is contained in:
Jan-Tarek Butt 2019-10-12 12:56:52 +02:00
parent 606cbae71e
commit 22442c5fcd
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ packages() {
shift
# We only allow variable names, parentheses and the operators: & | !
if [ "$(expr match "$cond" '.*[^A-Za-z0-9_()&|! ].*')" -gt 0 ]; then
if grep -q ".*[^A-Za-z0-9_()&|! ].*" <<< "$cond"; then
exit 1
fi

View File

@ -1,7 +1,7 @@
. ./modules
[ ! -f "$GLUON_SITEDIR"/modules ] || . "$GLUON_SITEDIR"/modules
FEEDS="$(echo $GLUON_FEEDS $GLUON_SITE_FEEDS | tr ' ' '\n')"
FEEDS="$(echo "$GLUON_FEEDS" "$GLUON_SITE_FEEDS" | tr ' ' '\n')"
GLUON_MODULES=openwrt