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