set -e doesn't trigger inside if conditions
@nathansl-cell▲ 5 net votes
Commands tested by if, while, && or || don't stop the script under set -e, which often surprises people.
4 COMMENTS
Handy
Fantastic
Important
Robust
Commands tested by if, while, && or || don't stop the script under set -e, which often surprises people.
Handy
Fantastic
Important
Robust