Skip to content
Snippets Groups Projects
Commit 12d8b7de authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

in case we dont have git in path to clone spack, try to load it from the module system

parent 2924c228
No related branches found
No related tags found
No related merge requests found
Pipeline #19012 passed
function _install_spack() { function _install_spack() {
if [ ! -e ${SPACK_ROOT} ]; then if [ ! -e ${SPACK_ROOT} ]; then
if ! command -v git &> /dev/null
then
echo "git could not be found ... will try to load it form the module system ..."
module load git || echo "could not load git from module system"
fi
echo "Cloning to ${SPACK_ROOT}" echo "Cloning to ${SPACK_ROOT}"
git clone --depth 1 ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT} git clone --depth 1 ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT}
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment