I want to continuously download a link until it successfully downloads,      #!/bin/bash      while [ some_condition  ]; do         curl my_url         # or         vagrant add my_vagrant_url --name localdev --force     doneWhat is correct way of detecting if download stream is not abnormally disconnected.
What are conditions I can check for detecting error in downloading using bash?
bash;shell script