6 ms·
In this case I would use [ -n "${FOO?}" ] so that the script will immediately stop if $FOO is null or unset
by mattrighetti 3y ago
In this case I would use [ -n "${FOO?}" ] so that the script will immediately stop if $FOO is null or unset
- 8n4vidtmkvmk 3y agoSet -xufo pipefail Or whatever the magic string is. Enable all the errors at the start of the script