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 b
set -e
true always returns a zero exit code. So you can do
true
command-with-meaningless-return-value || true