Skip to content
Snippets Groups Projects
Commit e15e5b86 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

cli: require version string

parent a3ac56e5
No related branches found
No related tags found
1 merge request!58CLI improvements
#!/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
......
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