I want to run an executable in Linux, and regardless of the exit status that it returns, I want to return a good exit status. (i.e. no error.)
(This is because I'm using sh -ex
and I want the script to keep running even if one (specific) command fails.)
Give this a try:
From
man bash
:Try
(executable ; exit 0)
, or alternatively wrap it in a shell script that always exits 0.