Skip to content

Commit

Permalink
fixup! output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
amessbee committed Jan 9, 2025
1 parent e5904f6 commit 56d84f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ videos

# contract tx
contract/,tx.json
contract/start-offer-up-plan.json
3 changes: 2 additions & 1 deletion contract/scripts/wait-for-chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ check_block_pattern() {
local required_patterns=3 # Number of block patterns we want to see

while IFS= read -r line; do
echo "$line" # Show the log output
echo "." # Show the log output

if [[ $line =~ "block-manager: block "[0-9]+" commit" ]]; then
((count++))
if [ $count -ge $required_patterns ]; then
echo "$line"
return 0 # Success
fi
fi
Expand Down

0 comments on commit 56d84f6

Please sign in to comment.