Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
a4714637
Commit
a4714637
authored
5 years ago
by
Daniel van der Schuur
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init_hdl.sh
+2
-2
2 additions, 2 deletions
init_hdl.sh
with
2 additions
and
2 deletions
init_hdl.sh
+
2
−
2
View file @
a4714637
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
if
[[
"
$_
"
==
"
${
0
}
"
]]
;
then
if
[[
"
$_
"
==
"
${
0
}
"
]]
;
then
echo
"ERROR: Use this command with '. ' or 'source '"
echo
"ERROR: Use this command with '. ' or 'source '"
sleep
1
sleep
1
exit
return
fi
fi
#
#
...
@@ -39,7 +39,7 @@ if [ -z "${ALTERA_DIR}" ]; then
...
@@ -39,7 +39,7 @@ if [ -z "${ALTERA_DIR}" ]; then
echo
"== environ variable 'ALTERA_DIR' not set. =="
echo
"== environ variable 'ALTERA_DIR' not set. =="
echo
"should be in your .bashrc file."
echo
"should be in your .bashrc file."
echo
"if it is your .bashrc file but not active run bash in your terminal"
echo
"if it is your .bashrc file but not active run bash in your terminal"
exit
return
fi
fi
# Figure out where this script is located and set environment variables accordingly
# Figure out where this script is located and set environment variables accordingly
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment