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 | 8b55a6de7484a9a2c6a4c5984684849ce16e0205 (patch) | |
tree | 1899b7394ae9f8373975c737283f057276f29722 /package/system | |
parent | a01bb4f1afe37906d8797a3e0e117d81d0b1edde (diff) | |
download | upstream-8b55a6de7484a9a2c6a4c5984684849ce16e0205.tar.gz upstream-8b55a6de7484a9a2c6a4c5984684849ce16e0205.tar.bz2 upstream-8b55a6de7484a9a2c6a4c5984684849ce16e0205.zip |
procd: allow adding empty strings to arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42456 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system')
-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 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 |