3 ms·
>> "Use set -o errexit" > Only if it doesn't matter that the script fails non-gracefully. Some scripts are better to either have explicit error handling code,
by jlg23 4y ago
>> "Use set -o errexit"
> Only if it doesn't matter that the script fails non-gracefully. Some scripts are better to either have explicit error handling code, or simply never fail.
Then handle those errors explicitly. The above will catch those error that you did not think about.