From 9c1e38858616777365c89af33b70f8124ebf2a77 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins <jameson.rollins@ligo.org> Date: Tue, 21 Apr 2020 00:21:16 -0700 Subject: [PATCH] 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). --- support/bin/rtcds.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/bin/rtcds.in b/support/bin/rtcds.in index fb1dc9874..1418b370b 100755 --- a/support/bin/rtcds.in +++ b/support/bin/rtcds.in @@ -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,,*} -- GitLab