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

Missing raw option for jq

parent 905d5a18
No related branches found
No related tags found
No related merge requests found
Pipeline #179106 failed
......@@ -45,7 +45,7 @@ spack:setup:
extends:
- .parallel_job
script:
- SPACK_VERSION=$(jq .spack.version config.json)
- SPACK_VERSION=$(jq -r .spack.version config.json)
- |
if [ ! -d /spack/spack ]; then
......@@ -61,15 +61,15 @@ spack:setup:
- |
mkdir -p /stack/extra_repos/
EXTERNAL_REPOS=$(jq '.spack.repos | .[]' config.json)
EXTERNAL_REPOS=$(jq -r '.spack.repos | .[]' config.json)
for repo in ${EXTERNAL_REPOS}
do
if [ ! -d /stack/extra_repos/${repo} ]; then
git clone -b $(jq ".spack.repos.${repos}.branch" config.json) $(jq ".spack.repos.${repos}.url" config.json) /stack/extra_repos/$repo
git clone -b $(jq -r ".spack.repos.${repos}.branch" config.json) $(jq -r ".spack.repos.${repos}.url" config.json) /stack/extra_repos/$repo
else
cd /stack/extra_repos/$repo
git fetch
git checkout $(jq ".spack.repos.${repos}.branch" config.json)
git checkout $(jq -r ".spack.repos.${repos}.branch" config.json)
fi
done
......
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