From 186164cb9373d43d307540ea84762d2c4c38ab46 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 12 Jan 2023 22:00:04 -0500 Subject: [PATCH] Squash bug that removes /usr/local/bin from PATH when eicrecon-this.sh is sourced. --- src/scripts/eicrecon-this.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/eicrecon-this.sh.in b/src/scripts/eicrecon-this.sh.in index ae04ff3791..71b2ace327 100644 --- a/src/scripts/eicrecon-this.sh.in +++ b/src/scripts/eicrecon-this.sh.in @@ -14,12 +14,14 @@ export EICrecon_ROOT=$( readlink -f ${SCRIPT_DIR}/.. ) #----------------- JANA2 if [[ -f @JANA_DIR@/../../../bin/jana-this.sh ]] ; then + unset ROOTSYS # prevent ROOT from removing /usr/local/bin from PATH export JANA_ROOT=$( readlink -f @JANA_DIR@/../../.. ) source @JANA_DIR@/../../../bin/jana-this.sh fi #----------------- ROOT if [[ -f @ROOT_BINDIR@/thisroot.sh ]] ; then + unset ROOTSYS # prevent ROOT from removing /usr/local/bin from PATH source @ROOT_BINDIR@/thisroot.sh fi