How to ignore return value different then 0 when I have set -e?
bash
Solution
`true` always returns a zero exit code. So you can do
command-with-meaningless-return-value || true
Problem
I often add `set -e` in my bash scripts. However this time I have to call a command that returns some meaningless number instead of 0 on success. How can I tell bash to ignore the return value of this command only. Changing the command, or changing it's code to conform to the standard is not an option.