scripts/*: fix quoting and rm antiqe expr condition
This commit is contained in:
parent
606cbae71e
commit
22442c5fcd
@ -51,7 +51,7 @@ packages() {
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
# We only allow variable names, parentheses and the operators: & | !
|
# 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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
. ./modules
|
. ./modules
|
||||||
[ ! -f "$GLUON_SITEDIR"/modules ] || . "$GLUON_SITEDIR"/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
|
GLUON_MODULES=openwrt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user