This is generally terrible advice. A better option is to 'set -e' and ensure that the bash script exits when there's a failure.
Bash scripts can't be idempotent because they operate in an external environment that can't ever be. The better option is to just be extra safe.
See:
> http://redsymbol.net/articles/unofficial-bash-strict-mode/