From f2dab3915c2a9a9fe59e7117adb6ec352edafa9b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 10 Sep 2014 12:57:07 +0000 Subject: procd: allow adding empty strings to arrays Signed-off-by: Felix Fietkau Backport of r42456 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42458 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/system/procd/files/procd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3