devtools: Make fund_nodes compatible w/zsh

Mac is updating to using zsh in general.

The “for i in” reads strings with spaces as a single entry instead of multiple entries as sh did.

Using “while read” … “<<< $var” makes it treat each space as a new entry.

Changelog-None
This commit is contained in:
Dustin Dettmer 2022-09-18 21:53:22 -04:00 committed by Christian Decker
parent 52be59587c
commit 6aca9f665b

View file

@ -206,7 +206,7 @@ fund_nodes() {
last_node=""
for i in $NODES; do
echo "$NODES" | while read -r i; do
if [ -z "$last_node" ]; then
last_node=$i
@ -253,6 +253,7 @@ fund_nodes() {
done
echo "done."
done
}