News for hackers. Stuff that matters.
Re:Elegant Bash Conditionals by neves on Tuesday March 02, 2021 @09:23PM (#26323945)
proprotip:

in the beginning of your scripts put:

set -e # stop script if error set -u # stop with undefined var set -o pipefail # stop with pipe fail

Now your scripts will have a sane default behavior

There are no comments on this comment yet.