diff --git a/scripts/fetch-commits.sh b/scripts/fetch-commits.sh index e5f0dc4eccc3..d0a11eb835ac 100755 --- a/scripts/fetch-commits.sh +++ b/scripts/fetch-commits.sh @@ -16,7 +16,7 @@ function queryRepos() { while [[ "$page" -gt -1 ]]; do # Query only the public repos since we won't add private containers to bitnami/containers - page_repos="$(curl -H 'Content-Type: application/json' -H 'Accept: application/json' "https://api.github.com/orgs/bitnami/repos?type=public&per_page=${repos_per_page}&page=${page}$archived=false")" + page_repos="$(curl -H 'Content-Type: application/json' -H 'Accept: application/json' "https://api.github.com/orgs/bitnami/repos?type=public&per_page=${repos_per_page}&page=${page}&archived=false")" repos="$(jq -s 'reduce .[] as $x ([]; . + $x)' <(echo "$repos") <(echo "$page_repos"))" n_repos="$(jq length <<< "$page_repos")" if [[ "$n_repos" -lt "$repos_per_page" ]]; then