commit | 9ba67fc13fabcc757e0ecf66c82c042d53521038 | [log] [tgz] |
---|---|---|
author | Christopher Anderson <chris@nullcode.org> | Fri Oct 23 16:12:46 2015 -0700 |
committer | Christopher Anderson <chris@nullcode.org> | Fri Oct 23 16:13:25 2015 -0700 |
tree | 642732aa31f1f7b5ded84014ae67bf04bd0bff61 | |
parent | f0aa07a322c2a62d1f2f08b55020456a51d87d7e [diff] |
[doit] Make it so failures in piped log commands make it to function return
diff --git a/doit b/doit index 384aab9..a4918d6 100755 --- a/doit +++ b/doit
@@ -10,6 +10,9 @@ # Get absolute path, will spawn a subshell then exit so our pwd is retained SCRIPTROOT=$(cd "$(dirname $0)" && pwd) +# Cause errors in pipes to return failure when necessary +set -o pipefail + function help() { echo "Options"