From cafd0bcd84eba1efc5f168a25917b596c94a3141 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Mon, 22 Jan 2024 19:50:58 +0100
Subject: [PATCH] Missing raw option for jq

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1c0978c..d244026 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
 
-- 
GitLab