From 86c80f62529f74756094a334feedce4ffe8484fc Mon Sep 17 00:00:00 2001 From: "Fritz D. Ansel" Date: Thu, 12 Aug 2021 14:05:09 +0200 Subject: [PATCH] xinetd: fix syntax violation see https://github.com/openwrt/packages/pull/16318#discussion_r687481110 Signed-off-by: Fritz D. Ansel Signed-off-by: Tianling Shen --- net/xinetd/files/xinetd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index 699d6fa583..9e3872fce2 100644 --- a/net/xinetd/files/xinetd.init +++ b/net/xinetd/files/xinetd.init @@ -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