Unix commands always return exit codes, but you do not need to respond to the exit code.
When running the command $?
The process exit code is set. Since this happens for each command, just run another command after the first change to $?
.
For instance:
createdb appname_production_master
Here is another example:
/bin/false
source share