summaryrefslogtreecommitdiff
path: root/scripts/setup/as-if-jh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/setup/as-if-jh.sh')
-rwxr-xr-xscripts/setup/as-if-jh.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/setup/as-if-jh.sh b/scripts/setup/as-if-jh.sh
index 38c3ac9b913..445a988b996 100755
--- a/scripts/setup/as-if-jh.sh
+++ b/scripts/setup/as-if-jh.sh
@@ -19,10 +19,9 @@ download_jh_path() {
echoinfo "Downloading ${path}"
- curl --location -o "${output}" -H "Private-Token: ${ADD_JH_FILES_TOKEN}" "https://gitlab.com/api/v4/projects/${GITLAB_JH_MIRROR_PROJECT}/repository/archive?sha=${JH_BRANCH}&path=${path}"
+ curl --location --output "${output}" --header "Private-Token: ${ADD_JH_FILES_TOKEN}" --get --data-urlencode "sha=${JH_BRANCH}" --data-urlencode "path=${path}" "https://gitlab.com/api/v4/projects/${GITLAB_JH_MIRROR_PROJECT}/repository/archive"
- tar -zxf "${output}"
+ tar -zxf "${output}" --strip-component 1
rm "${output}"
- mv gitlab-"${JH_BRANCH}"-*/"${path}" ./
done
}