From 873292d167bdac7936f26f5bcb78e5b52c7b3be7 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin <quentinduchemin@tuta.io> Date: Sat, 21 Dec 2019 21:06:40 +0100 Subject: [PATCH] Really exit on failure --- get-modified-image.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/get-modified-image.sh b/get-modified-image.sh index 03517190..eaadcdd4 100755 --- a/get-modified-image.sh +++ b/get-modified-image.sh @@ -1,7 +1,5 @@ #!/bin/sh -set -e - # Retrieve the name and the version of the image that was modified in the latest commit # This script should become obsolete as soon as a proper way of getting the modified files is added to Gitlab CI @@ -20,4 +18,5 @@ echo "export MODIFIED_IMAGE=${RES}" > variables # Image name with wanted registry and tag, fetched from Docker Compose RES=$(cat $RES/docker-compose.yml | grep $RES | cut -d ':' -f2- | tr -d ' ') +if [ "$RES" = "" ]; then exit 1; fi echo "export MODIFIED_IMAGE_FULL=${RES}" >> variables -- GitLab