I have a bash script that run some tool that on some use cases returns an error code of 137. I use this script as part of my CI pipeline and and as far as i am concerned this is suceessful state. My question is how can i catch this exit code and return an exit code of 0 instead(like trap command, only the I do not think it support custom exit codes, only predefined one).
Thanks in advance, Alon