scripts/*: fix quoting and rm antiqe expr condition
This commit is contained in:
parent
606cbae71e
commit
22442c5fcd
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user