about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xinstall-all.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/install-all.sh b/install-all.sh
index 636bd6e7..ed9293e6 100755
--- a/install-all.sh
+++ b/install-all.sh
@@ -1,7 +1,19 @@
-#!/bin/sh
+#!/bin/bash
+
+set -o errtrace
 
 STATUS=development
 
+error_handler()
+{
+        ERR_CODE=$?
+        echo "Error $ERR_CODE with command '$BASH_COMMAND' on line ${BASH_LINENO[0]}. Exiting."
+        exit $ERR_CODE
+
+}
+
+trap error_handler ERR
+
 debian_prepare()
 {
     echo