How to write idempotent Bash scripts

from blog Fatih Arslan, | ↗ original
It happens a lot, you write a bash script and half way it exits due an error. You fix the error in your system and run the script again. But half of the steps in your scripts fail immediately because they...