diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-10 12:57:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-10 12:57:07 +0000 |
commit | f2dab3915c2a9a9fe59e7117adb6ec352edafa9b (patch) | |
tree | ad7f556e9dad842b4794230735c1702267d107c6 | |
parent | 8f06373262887b25329312422ac2ae2f32b7e83a (diff) | |
download | upstream-f2dab3915c2a9a9fe59e7117adb6ec352edafa9b.tar.gz upstream-f2dab3915c2a9a9fe59e7117adb6ec352edafa9b.tar.bz2 upstream-f2dab3915c2a9a9fe59e7117adb6ec352edafa9b.zip |
procd: allow adding empty strings to arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r42456
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42458 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 1b19ba93f6..6d4cd9e114 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 |