diff --git a/init_hdl.sh b/init_hdl.sh
index 8dfeb67292e7e6c6ddd95e950575a31ab534ffc3..1221c746daf36c56fd1fadd110c35be565f87b32 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