3 ms·
I second that! Every shell script should start with "set -e -u": exit if any command fails (except if called as a condition) or if an unset variable is used. U
by lysium 13y ago
I second that! Every shell script should start with "set -e -u": exit if any command fails (except if called as a condition) or if an unset variable is used.
Usually, you never want your script to continue running after a command unexpectedly fails or you use an unset variable. Saves so much time debugging!