Skip to content
Snippets Groups Projects
Commit 85fabd68 authored by nbd's avatar nbd
Browse files

procd: allow adding empty strings to arrays


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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42456 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 657375b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment