diff options
author | Fritz D. Ansel <fdansel@yandex.ru> | 2021-08-12 14:05:09 +0200 |
---|---|---|
committer | Fritz D. Ansel <fdansel@yandex.ru> | 2021-08-12 14:05:09 +0200 |
commit | afdc1c2a7517f701d75bf27a34479ec84d0be0fb (patch) | |
tree | 02029ab46b136ca11ae78e1e75f9ec3ff9bda1b8 /net | |
parent | 631e3fa10faeb60f57ddfd207c7f569c49d2880c (diff) |
xinetd: fix syntax violation
see https://github.com/openwrt/packages/pull/16318#discussion_r687481110
Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
Diffstat (limited to 'net')
-rw-r--r-- | net/xinetd/files/xinetd.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index 699d6fa58..9e3872fce 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 |