From 7115c439acbf5a5b553eaf5f4e85942b4de8b770 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Wed, 22 Apr 2026 14:39:09 -0400 Subject: [PATCH] add option to only set $PATH --- libexec/env.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/env.sh b/libexec/env.sh index 8497746346..543a1f81bd 100644 --- a/libexec/env.sh +++ b/libexec/env.sh @@ -2,6 +2,12 @@ export CLAS12DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0})/.. && pwd -P) +export PATH=$CLAS12DIR/bin:$PATH + +if [ "${1-}" = '--shell' ]; then + return +fi + # Set default field maps (but do not override user's env): if [ -z "${COAT_MAGFIELD_TORUSMAP-}" ]; then export COAT_MAGFIELD_TORUSMAP=Symm_torus_r2501_phi16_z251_24Apr2018.dat