From d4147d6c76b1b4f0eb0cb3976f749e3b9531fb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 16 Feb 2022 12:23:53 +0100 Subject: [PATCH] add set -e --- init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.sh b/init.sh index a37931a..b71dd69 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e # Exit with error code if subcommand does + # safety first if [[ $(pwd) == *template* ]] then