projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01bb4f
)
procd: allow adding empty strings to arrays
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 10 Sep 2014 12:56:19 +0000
(12:56 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 10 Sep 2014 12:56:19 +0000
(12:56 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42456
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/system/procd/files/procd.sh
patch
|
blob
|
history
diff --git
a/package/system/procd/files/procd.sh
b/package/system/procd/files/procd.sh
index
d71c3cf
..
e4e75ed
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() {
- while [
-n "$1"
]; do
+ while [
"$#" -gt 0
]; do
json_add_string "" "$1"
shift
done