container: lib_finance: call root with $ROOTSYS

Non-packaged pre-compiled ROOT.cern is not installed to /usr/bin
This commit is contained in:
2024-06-27 18:11:49 -07:00
parent dffb3e5b14
commit d93d2dd17c

View File

@@ -206,9 +206,11 @@ function lib_finance::reports()
function lib_finance::root()
{
[ -z "$ROOTSYS" ] && lib_utils::die_fatal
# NOTE: will automatically load rootlogon.C
pushd "${DOCKER_FINANCE_CONTAINER_REPO}/src/root/macro" 1>/dev/null \
&& /usr/bin/root -l
&& "${ROOTSYS}"/bin/root -l
lib_utils::catch $?
}