2 ms·
I'd used "set -e" and "set -u" before, but I had never seen it written as "-o nounset" and "-o errexit". The latter makes it clearer exactly what features are
by wyldfire 11y ago
I'd used "set -e" and "set -u" before, but I had never seen it written as "-o nounset" and "-o errexit".
The latter makes it clearer exactly what features are being enabled, and it's a bit of a false economy to try and "shorten" the script like this.