From 9122ccd1b8dc4d6a41aaa0794e80b5e06f2484d5 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 23 Jan 2017 06:11:20 +0100 Subject: [PATCH] Add fail fast option Fail the script if a command inside it fails to prevent a install with exitcode 0 even when commands in it are failing. --- bin/setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/setup b/bin/setup index 6724b2d..3f143cd 100755 --- a/bin/setup +++ b/bin/setup @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # run command at repo root CURRENT_PATH=$PWD if [ -d .git ]; then