summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSheogorath2017-01-23 06:11:20 +0100
committerGitHub2017-01-23 06:11:20 +0100
commit9122ccd1b8dc4d6a41aaa0794e80b5e06f2484d5 (patch)
tree41d1ef377fec4d3223f35c9f610fe36c2f590bfe /bin
parent4a25adba230c754d05040634fe1411184b6adb79 (diff)
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/setup2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/setup b/bin/setup
index 6724b2d5..3f143cd3 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