Skip to content

Commit c369253

Browse files
committed
update bootnode check script
1 parent 7d41e83 commit c369253

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

cicd/devnet/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ do
2424
bootnodes="${bootnodes},$line"
2525
fi
2626
done < "$input"
27+
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
28+
if [ -z "${bootnodes}" ]
29+
then
30+
bootnodes=$line
31+
else
32+
bootnodes="${bootnodes},$line"
33+
fi
2734

2835
log_level=3
2936
if test -z "$LOG_LEVEL"

cicd/mainnet/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ do
2424
bootnodes="${bootnodes},$line"
2525
fi
2626
done < "$input"
27+
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
28+
if [ -z "${bootnodes}" ]
29+
then
30+
bootnodes=$line
31+
else
32+
bootnodes="${bootnodes},$line"
33+
fi
2734

2835
log_level=3
2936
if test -z "$LOG_LEVEL"

cicd/testnet/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ do
2525
bootnodes="${bootnodes},$line"
2626
fi
2727
done < "$input"
28+
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
29+
if [ -z "${bootnodes}" ]
30+
then
31+
bootnodes=$line
32+
else
33+
bootnodes="${bootnodes},$line"
34+
fi
2835

2936
log_level=3
3037
if test -z "$LOG_LEVEL"

0 commit comments

Comments
 (0)