From 2dabf3a775f21a1a66b9505e63ee79056b237ccf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 10 Sep 2014 12:56:19 +0000 Subject: [PATCH] procd: allow adding empty strings to arrays Signed-off-by: Felix Fietkau SVN-Revision: 42456 --- 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 d71c3cfc0a4..e4e75edb2e1 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