diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-10 12:56:19 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-10 12:56:19 +0000 |
commit | 2dabf3a775f21a1a66b9505e63ee79056b237ccf (patch) | |
tree | 422715453655893e751814aff9df4eca15c13f8f /package | |
parent | 9ccacbaa40f37999cbc7c7224812bc02924f62a3 (diff) | |
download | mtk-20170518-2dabf3a775f21a1a66b9505e63ee79056b237ccf.zip mtk-20170518-2dabf3a775f21a1a66b9505e63ee79056b237ccf.tar.gz mtk-20170518-2dabf3a775f21a1a66b9505e63ee79056b237ccf.tar.bz2 |
procd: allow adding empty strings to arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42456
Diffstat (limited to 'package')
-rw-r--r-- | package/system/procd/files/procd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index d71c3cf..e4e75ed 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -75,7 +75,7 @@ _procd_close_service() { } _procd_add_array_data() { - while [ -n "$1" ]; do + while [ "$#" -gt 0 ]; do json_add_string "" "$1" shift done |