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)