Skip to content

Commit

Permalink
contrib: startup_regtest.sh linter cleanup
Browse files Browse the repository at this point in the history
solves check-shellcheck complaints of:
note: Double quote to prevent globbing and word splitting. [SC2086]

Changelog-None
  • Loading branch information
endothermicdev committed Feb 11, 2025
1 parent 41b05e1 commit c060cef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/startup_regtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ fund_nodes() {

"$LCLI" -H --lightning-dir="$LIGHTNING_DIR"/l"$node1" connect "$L2_NODE_ID"@localhost:"$L2_NODE_PORT" > /dev/null

L1_WALLET_ADDR=$($LCLI -F --lightning-dir=$LIGHTNING_DIR/l"$node1" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')
L2_WALLET_ADDR=$($LCLI -F --lightning-dir=$LIGHTNING_DIR/l"$node2" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')
L1_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node1" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')
L2_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node2" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')

ensure_bitcoind_funds

Expand Down Expand Up @@ -383,7 +383,7 @@ fund_nodes() {

printf "%s" "Waiting for confirmation... "

while ! "$LCLI" -F --lightning-dir=$LIGHTNING_DIR/l"$node1" listchannels | grep -q "channels"
while ! "$LCLI" -F --lightning-dir="$LIGHTNING_DIR"/l"$node1" listchannels | grep -q "channels"
do
sleep 1
done
Expand Down Expand Up @@ -428,7 +428,7 @@ node_info() {
}

destroy_ln() {
rm -rf $LIGHTNING_DIR/l[0-9]*
rm -rf "$LIGHTNING_DIR"/l[0-9]*
}

start_elem() {
Expand Down

0 comments on commit c060cef

Please sign in to comment.