How to invert command exit code?
How to apply a logical not to a shell command, e.g. in a Bash script?
So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero value (failure) like 1, I would like it to become 0. A negation of sorts.