Commit 1a700fe0 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Added check for OSG_APP

parent e22a378d
......@@ -4,14 +4,22 @@ echo "<h2>Test of FroNtier under CMSSW</h2>"
# Source the CMS environment
echo "<h3>Sourcing the CMS environment</h3>"
echo "<pre>"
export SCRAM_ARCH=slc3_ia32_gcc323
source $VO_CMS_SW_DIR/cmsset_default.sh
if [ -n "$VO_CMS_SW_DIR" ] ; then
SW_DIR=$VO_CMS_SW_DIR
elif [ -n "$OSG_APP" ] ; then
SW_DIR=$OSG_APP
else
echo "ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
exit $SAME_ERROR
fi
echo "<pre>"
source $SW_DIR/cmsset_default.sh
result=$?
echo "</pre>"
if [ $result != 0 ]
then
echo "ERROR: $VO_CMS_SW_DIR/cmsset_default.sh non existent or non readable"
echo "ERROR: $SW_DIR/cmsset_default.sh non existent or non readable"
exit $SAME_ERROR
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment