Skip to content
Snippets Groups Projects
Commit 86f4166c authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Debugging echo

parent 74bb4c8b
No related branches found
No related tags found
No related merge requests found
Pipeline #179116 failed
......@@ -57,17 +57,20 @@ spack:setup:
cd -
fi
- /spack/spack/bin/spack -vv -d gpg trust $GPG_PRIVATE_KEY
- /spack/spack/bin/spack gpg trust $GPG_PRIVATE_KEY
- |
mkdir -p /stack/extra_repos/
EXTERNAL_REPOS=$(jq -r '.spack.repos | .[]' config.json)
echo "Repos: ${EXTERNAL_REPOS}"
for repo in ${EXTERNAL_REPOS}
do
repo_branch=$(jq -r ".spack.repos.${repo}.branch" config.json)
repo_branch=$(jq -r ".spack.repos.\"${repo}\".branch" config.json)
if [ ! -d /stack/extra_repos/${repo} ]; then
url_branch=$(jq -r ".spack.repos.${repo}.url" config.json)
url_branch=$(jq -r ".spack.repos.\"${repo}\".url" config.json)
git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo
else
cd /stack/extra_repos/$repo
......
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