[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"