mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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:
parent
52be59587c
commit
6aca9f665b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue