forked from freifunk-franken/firmware
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:
parent
a157f413d4
commit
f5872dd84b
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue