fff-hoods: fix/simplify condition in configurehood

What was intended as grouping of logic operators actually invoked
a subshell. Remove the subshell by using a better choice of operators.

Found by shellcheck.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Adrian Schmutzler 2020-08-01 01:28:34 +02:00
parent a157f413d4
commit f5872dd84b
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-hoods
PKG_RELEASE:=14
PKG_RELEASE:=15
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -106,7 +106,7 @@ if [ -s "$hoodfiletmp" ]; then
json_select ".." # back to root
if ! ([ -n "$chan2ghz" ] && [ -n "$chan5ghz" ]) ; then
if [ -z "$chan2ghz" ] || [ -z "$chan5ghz" ] ; then
# If channel is missing, do nothing
exit 0
fi