Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Elegant Bash Conditionals. Parent comment
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.
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