From 07bc9b50d26b76bb22ae481dbf26dafa0c0ab2ca Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 11 Apr 2024 10:05:07 +0200 Subject: [PATCH] Replace the command with the full path to a shorter one that reuses setup.sh, and has everything that the setup.sh script provides like k4_local_repo --- scripts/cvmfs/setup-nightlies.sh | 2 +- scripts/cvmfs/setup-releases.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/cvmfs/setup-nightlies.sh b/scripts/cvmfs/setup-nightlies.sh index c56d65d7..b989cb6c 100644 --- a/scripts/cvmfs/setup-nightlies.sh +++ b/scripts/cvmfs/setup-nightlies.sh @@ -209,7 +209,7 @@ else fi echo "Use the following command to reproduce the current environment: " echo "" -echo " source ${setup_actual}" +echo " source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r $(basename $(dirname $(dirname $(dirname $(dirname $setup_actual)))))" echo "" echo "Nightly builds are intended for testing and development, if you need a stable environment use the releases" echo "If you have any issues, comments or requests, open an issue at https://github.com/key4hep/key4hep-spack/issues" diff --git a/scripts/cvmfs/setup-releases.sh b/scripts/cvmfs/setup-releases.sh index 97212c20..a1ea4aec 100644 --- a/scripts/cvmfs/setup-releases.sh +++ b/scripts/cvmfs/setup-releases.sh @@ -222,8 +222,7 @@ else fi echo "Use the following command to reproduce the current environment: " echo "" -echo " source ${setup_actual}" +echo " source /cvmfs/sw.hsf.org/key4hep/setup.sh -r $(basename $(dirname $(dirname $(dirname $(dirname $setup_actual)))))" echo "" -echo "Nightly builds are intended for testing and development, if you need a stable environment use the releases" echo "If you have any issues, comments or requests, open an issue at https://github.com/key4hep/key4hep-spack/issues" source ${setup_actual}