Suppressing Before / After command failures
When a command-line program displays some output, the output is either sent to stdout ("fd 1", for normal messages) or stderr ("fd 2", for error messages).
Magnus Box will mark a Before/After command as a warning if there was content on stderr, or, if the command had a non-zero exit code.
If you are certain that the command cannot fail, you can
- redirect stderr messages to go to stdout instead, by adding 2>&1 to the end of your command
- override the command exit code, by adding to...