Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
CDS
software
advLigoRTS
Commits
e15e5b86
Commit
e15e5b86
authored
5 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Patches
Plain Diff
cli: require version string
parent
a3ac56e5
No related branches found
Branches containing commit
No related tags found
1 merge request
!58
CLI improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
support/bin/rtcds.in
+8
-4
8 additions, 4 deletions
support/bin/rtcds.in
with
8 additions
and
4 deletions
support/bin/rtcds.in
+
8
−
4
View file @
e15e5b86
#!/bin/bash -e
log
()
{
echo
"
$@
"
>
&2
}
RTS_VERSION
=
${
RTS_VERSION
:-
__VERSION__
}
if
[[
"
$RTS_VERSION
"
=
~ ._VERSION_.
]]
;
then
log
"RTS_VERSION variable not set."
exit
1
fi
# this should define all USER_VARS (see below)
ENV_FILE
=
${
RTS_ENV
:-
/etc/advligorts/env
}
...
...
@@ -31,10 +39,6 @@ EXPORT_VARS=(${USER_VARS[@]} site ifo CDS_SRC CDS_IFO_SRC)
##################################################
log
()
{
echo
"
$@
"
>
&2
}
check_env
()
{
for
var
in
${
USER_VARS
[*]
}
;
do
if
[
!
"
${
!var
}
"
]
;
then
...
...
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