Second line of any shell script really ought to be `set -e`, which will force you to explicitly handle possible failures (either with the explicit `|| true` or with `if some_failing_command; then`.