From c31f15db3f8bf69c38e4905f4d713d0974414005 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Tue, 4 Feb 2020 13:07:06 +0100
Subject: [PATCH] WIP: pipeline

---
 patches/utils/patch_header.sh | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/patches/utils/patch_header.sh b/patches/utils/patch_header.sh
index 201dcc1..53962d4 100644
--- a/patches/utils/patch_header.sh
+++ b/patches/utils/patch_header.sh
@@ -102,17 +102,7 @@ while test $# -gt 0; do
 done
 
 echo "HERE header1"
-if [ -n "$ENV_FILE" ] ; then 
-    if [ -f "$ENV_FILE" ] ; then
-        echo -n "source $ENV_FILE ..."
-        . "$ENV_FILE"
-        echo "[DONE]"
-    else
-        echo "$ENV_FILE does not exist"
-        exit 1
-    fi
-fi
-
+source $ENV_FILE || echo "Could not source $ENV_FILE"
 echo "HERE header2"
 
 if [[ -z "$DATABASE_NAME" && -z "$MYSQL_CONNECTION" ]]
-- 
GitLab