xinetd: fix syntax violation

see https://github.com/openwrt/packages/pull/16318#discussion_r687481110

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
This commit is contained in:
Fritz D. Ansel 2021-08-12 14:05:09 +02:00
parent 631e3fa10f
commit afdc1c2a75
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ config_cb() {
local value="$2"
# write out last list option if new list starts
if [ "$ListName" != "" -a "$ListName" != "$name" ]; then
if [ -n "$ListName" ] && [ "$ListName" != "$name" ]; then
echo -e "\t$ListName = $ListVals" >> $GENERATED_CONF_FILE