Skip to content

Commit c060cef

Browse files
contrib: startup_regtest.sh linter cleanup
solves check-shellcheck complaints of: note: Double quote to prevent globbing and word splitting. [SC2086] Changelog-None
1 parent 41b05e1 commit c060cef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/startup_regtest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ fund_nodes() {
351351

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

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

357357
ensure_bitcoind_funds
358358

@@ -383,7 +383,7 @@ fund_nodes() {
383383

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

386-
while ! "$LCLI" -F --lightning-dir=$LIGHTNING_DIR/l"$node1" listchannels | grep -q "channels"
386+
while ! "$LCLI" -F --lightning-dir="$LIGHTNING_DIR"/l"$node1" listchannels | grep -q "channels"
387387
do
388388
sleep 1
389389
done
@@ -428,7 +428,7 @@ node_info() {
428428
}
429429

430430
destroy_ln() {
431-
rm -rf $LIGHTNING_DIR/l[0-9]*
431+
rm -rf "$LIGHTNING_DIR"/l[0-9]*
432432
}
433433

434434
start_elem() {

0 commit comments

Comments
 (0)