Skip to content

Commit

Permalink
Small fix to pushd and popd around source thisroot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kkauder committed Jan 31, 2024
1 parent 5f2826b commit 99e8ae7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/jana-this.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export PATH=@JANA_INSTALL_DIR@/bin:${PATH}
if [ "@JANA2_HAVE_ROOT@" == "1" ]; then
if [ -f "@ROOTSYS@/bin/thisroot.sh" ]; then
unset ROOTSYS
. "@ROOTSYS@/bin/thisroot.sh"
# workaround for https://github.com/root-project/root/issues/14085
# thisroot.sh does not recognize bash when running in qemu (like eic-shell on Silicon)
pushd @ROOT_BINDIR@ >/dev/null
source thisroot.sh
popd >/dev/null
fi
fi

Expand Down

0 comments on commit 99e8ae7

Please sign in to comment.