Author: nbd Date: 2014-09-10 14:56:19 +0200 (Wed, 10 Sep 2014) New Revision: 42456
Modified: trunk/package/system/procd/files/procd.sh Log: procd: allow adding empty strings to arrays Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/system/procd/files/procd.sh =================================================================== --- trunk/package/system/procd/files/procd.sh 2014-09-09 21:15:49 UTC (rev 42455) +++ trunk/package/system/procd/files/procd.sh 2014-09-10 12:56:19 UTC (rev 42456) @@ -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
