projects
/
openwrt-14.07
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: allow adding empty strings to arrays
[openwrt-14.07/.git]
/
package
/
system
/
procd
/
files
/
procd.sh
diff --git
a/package/system/procd/files/procd.sh
b/package/system/procd/files/procd.sh
index 1b19ba93f673963410c99e80d49f0c8c494cfcea..6d4cd9e11476866b53c0e99bc28ecb7ff1540f68 100644
(file)
--- 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() {
}
_procd_add_array_data() {
- while [
-n "$1"
]; do
+ while [
"$#" -gt 0
]; do
json_add_string "" "$1"
shift
done
json_add_string "" "$1"
shift
done