Skip to content
Snippets Groups Projects
Commit a4714637 authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

Using return instead of exit to prevent terminal from closing (so user can read the error messages)

parent 63f267c2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment