SyntaxFix
Write A Post
Hire A Developer
Questions
If anyone looking to have retry limit:
max_retry=5 counter=0 until $command do sleep 1 [[ counter -eq $max_retry ]] && echo "Failed!" && exit 1 echo "Trying again. Try #$counter" ((counter++)) done