mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-07 07:04:25 +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:
committed by
Christian Decker
parent
52be59587c
commit
6aca9f665b
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user