Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Posixcube, a shell script automation framework alternative to Ansible. Parent comment
I had a thought yesterday for handling pipeline failures by using set -e in a sub-shell. I still need to test this, but something like:
(set -e; command1 | grep foo | grep bar | sed ...) || cube_check_return
There are no comments on this comment yet.
I had a thought yesterday for handling pipeline failures by using set -e in a sub-shell. I still need to test this, but something like: