Last Updated: February 25, 2016
·
958
· dcsg

Force exit code 0

Imagine you have your Continuous Integration script running and one of your commands in not exit with code 0, but you know that the command is work has you wanted. So you need to enforce that after the command runs it will return an exit code 0.

This is only one of the use cases for the following command:

sh my_command || :