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

rtcds: export all variables loaded from /etc/advligorts/env

This wraps the sourcing of the /etc/advligorts/env file in the 'allexport'
shell option that explicitly marks all variables for export.  Hopefully
this will eliminate the need to explicitly export variables (address #92).
parent 65800cb3
No related branches found
No related tags found
1 merge request!79rtcds: export all variables loaded from /etc/advligorts/env
......@@ -12,7 +12,9 @@ fi
# this should define all USER_VARS (see below)
ENV_FILE=${RTS_ENV:-/etc/advligorts/env}
set -o allexport
source "$ENV_FILE" 2>/dev/null || true
set +o allexport
SITE=${SITE^^*}
site=${SITE,,*}
......
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