From ca1aa997cab7f307961757aef8b558ca7a0a3ff8 Mon Sep 17 00:00:00 2001 From: rmanaem Date: Fri, 23 Aug 2024 20:53:02 -0400 Subject: [PATCH] Added debug log --- scripts/fetch-repos.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/fetch-repos.sh b/scripts/fetch-repos.sh index 6c938ac..6964959 100644 --- a/scripts/fetch-repos.sh +++ b/scripts/fetch-repos.sh @@ -55,14 +55,13 @@ while true; do # Add the repository information to the array REPOS+=("{\"name\": \"$REPO_NAME\", \"annotated\": $ANNOTATED}") - echo "$REPO_NAME is annotated: $ANNOTATED" done # Increment page number ((PAGE++)) done -# Write repository information to the JSON file +# Write repository information to the JSON file, ensuring it's clean echo "[${REPOS[*]}]" | jq '.' > "$OUTPUT_FILE" # Debug: Output final JSON file content