aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-09-10 12:56:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-09-10 12:56:19 +0000
commit2dabf3a775f21a1a66b9505e63ee79056b237ccf (patch)
tree422715453655893e751814aff9df4eca15c13f8f /package/system
parent9ccacbaa40f37999cbc7c7224812bc02924f62a3 (diff)
downloadupstream-2dabf3a775f21a1a66b9505e63ee79056b237ccf.tar.gz
upstream-2dabf3a775f21a1a66b9505e63ee79056b237ccf.tar.bz2
upstream-2dabf3a775f21a1a66b9505e63ee79056b237ccf.zip
procd: allow adding empty strings to arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42456
Diffstat (limited to 'package/system')
-rw-r--r--package/system/procd/files/procd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index d71c3cfc0a..e4e75edb2e 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