This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count=0 | |
while [ $count -lt 3 ]; | |
do | |
if docker logs --tail 10 witness | grep handle_block; | |
then | |
echo "All OK. Count value: $count" | |
sleep 120 | |
else | |
let "count = count + 1" |