Commit f4de40a1 authored by nbd's avatar nbd

procd: allow adding empty strings to arrays

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

Backport of r42456

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42458 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 9d90bc20
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment