Author: nbd
Date: 2014-09-10 14:57:07 +0200 (Wed, 10 Sep 2014)
New Revision: 42458

Modified:
   branches/barrier_breaker/package/system/procd/files/procd.sh
Log:
procd: allow adding empty strings to arrays

Signed-off-by: Felix Fietkau <[email protected]>

Backport of r42456

Modified: branches/barrier_breaker/package/system/procd/files/procd.sh
===================================================================
--- branches/barrier_breaker/package/system/procd/files/procd.sh        
2014-09-10 12:56:24 UTC (rev 42457)
+++ branches/barrier_breaker/package/system/procd/files/procd.sh        
2014-09-10 12:57:07 UTC (rev 42458)
@@ -75,7 +75,7 @@
 }
 
 _procd_add_array_data() {
-       while [ -n "$1" ]; do
+       while [ "$#" -gt 0 ]; do
                json_add_string "" "$1"
                shift
        done
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to