Skip to content
Snippets Groups Projects
Commit aa401576 authored by Keith Thorne's avatar Keith Thorne
Browse files

get RCG location from rcg-user-env.sh location

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@3657 6dcd42c9-f523-4c6d-aada-af552506706e
parent 758e5495
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,11 @@ if [ "${site}set" = "set" ]; then
elif [ "${ifo}set" = "set" ] ; then
echo "RCG setup failed - environment variable <ifo> is not defined"
else
# check location
if [ -d /opt/rtcds/rtscore/release ]; then
# check location - first try in directory this script is in
AUTO_RCGDIR=$(dirname $(dirname $(readlink -f $BASH_SOURCE)))
if [ -d "${AUTO_RCGDIR}" ] ; then
rcgDir=${AUTO_RCGDIR}
elif [ -d /opt/rtcds/rtscore/release ]; then
rcgDir=/opt/rtcds/rtscore/release
elif [ -d /opt/rtcds/${site}/${ifo}/core/release ]; then
rcgDir=/opt/rtcds/${site}/${ifo}/core/release
......
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