Why doesn't set -e stop my function when I call it from an if?
A cleanup function runs a failing command and then prints a success message. With set -e enabled, calling the function as an if condition still reaches the success…
A cleanup function runs a failing command and then prints a success message. With set -e enabled, calling the function as an if condition still reaches the success…