use @dpw's shell join, and remove non-posix 'local'
This commit is contained in:
1 parent
781686ee4a
commit
d18640fc8c
1 file changed
+7
-2
@@ -563,8 +563,13 @@ echo_addresses() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
peer_args() {
|
peer_args() {
|
||||||
local joined=$(printf "&peer=%s" "${@}")
|
res=''
|
||||||
echo ${joined:1}
|
sep=''
|
||||||
|
for p in "$@" ; do
|
||||||
|
res="$res${sep}peer=$p"
|
||||||
|
sep="&"
|
||||||
|
done
|
||||||
|
echo "$res"
|
||||||
}
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|||||||
Reference in new issue
Block a user