diff --git a/scripts/jana-this.sh.in b/scripts/jana-this.sh.in index d39be9224..2b26be789 100644 --- a/scripts/jana-this.sh.in +++ b/scripts/jana-this.sh.in @@ -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