From 4b3e845a5970243d429bbd554fb6f1af32f12686 Mon Sep 17 00:00:00 2001 From: K Date: Thu, 23 May 2024 19:10:20 +0200 Subject: [PATCH] dockerBuild.sh: set -e, cd $(dirname $0) --- deploy/docker/dockerBuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/docker/dockerBuild.sh b/deploy/docker/dockerBuild.sh index 6c531264ab..ad25ef4626 100755 --- a/deploy/docker/dockerBuild.sh +++ b/deploy/docker/dockerBuild.sh @@ -1,13 +1,16 @@ #!/bin/bash +set -e + STATUS=$(git status --porcelain | grep -c '^') if [[ "$STATUS" != "0" ]] then echo "Cowardly refusing to build with a dirty git" - exit 1 fi +cd $(dirname $0) + # Get the current commit hash of the repository COMMIT=$(git rev-parse --short HEAD)