Skip to content

Commit

Permalink
update bootnode check script
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Nov 29, 2024
1 parent 7d41e83 commit c369253
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cicd/devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ do
bootnodes="${bootnodes},$line"
fi
done < "$input"
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
if [ -z "${bootnodes}" ]
then
bootnodes=$line
else
bootnodes="${bootnodes},$line"
fi

log_level=3
if test -z "$LOG_LEVEL"
Expand Down
7 changes: 7 additions & 0 deletions cicd/mainnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ do
bootnodes="${bootnodes},$line"
fi
done < "$input"
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
if [ -z "${bootnodes}" ]
then
bootnodes=$line
else
bootnodes="${bootnodes},$line"
fi

log_level=3
if test -z "$LOG_LEVEL"
Expand Down
7 changes: 7 additions & 0 deletions cicd/testnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ do
bootnodes="${bootnodes},$line"
fi
done < "$input"
#check last line since it's not included in "read" command https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
if [ -z "${bootnodes}" ]
then
bootnodes=$line
else
bootnodes="${bootnodes},$line"
fi

log_level=3
if test -z "$LOG_LEVEL"
Expand Down

0 comments on commit c369253

Please sign in to comment.