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 || :
Written by Daniel Gomes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Danielcsgomes
Authors
dcsg
134.8K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#