From a471463720d5c726de55c35e75aac480c33bb12d Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Tue, 10 Dec 2019 16:19:13 +0100
Subject: [PATCH] Using return instead of exit to prevent terminal from closing
 (so user can read the error messages)

---
 init_hdl.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/init_hdl.sh b/init_hdl.sh
index 8dfeb67292..1221c746da 100644
--- a/init_hdl.sh
+++ b/init_hdl.sh
@@ -31,7 +31,7 @@
 if [[ "$_" == "${0}" ]]; then
     echo "ERROR: Use this command with '. ' or 'source '"
     sleep 1
-    exit
+    return
 fi
 
 # 
@@ -39,7 +39,7 @@ if [ -z "${ALTERA_DIR}" ]; then
     echo "== environ variable 'ALTERA_DIR' not set. =="
     echo "should be in your .bashrc file."
     echo "if it is your .bashrc file but not active run bash in your terminal"
-    exit
+    return
 fi
 
 # Figure out where this script is located and set environment variables accordingly
-- 
GitLab