From 4b560087b1f21004b09df282b7d03d1bf7f8e7b4 Mon Sep 17 00:00:00 2001 From: Saravana Dhandapani Date: Thu, 10 Jul 2025 02:11:00 -0700 Subject: [PATCH] fix: Allow create_contributor_repo_lists.sh to accept accounts.json path --- github_repo_scanners/create_contributor_repo_lists.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/github_repo_scanners/create_contributor_repo_lists.sh b/github_repo_scanners/create_contributor_repo_lists.sh index 2a460a5..535cef7 100755 --- a/github_repo_scanners/create_contributor_repo_lists.sh +++ b/github_repo_scanners/create_contributor_repo_lists.sh @@ -1,6 +1,12 @@ #!/bin/bash -ACCOUNTS_FILE="accounts.json" +if [ -z "$1" ]; then + # If no argument is provided, assume the script is run from the project root + # and accounts.json is in the same directory. + ACCOUNTS_FILE="accounts.json" +else + ACCOUNTS_FILE="$1" +fi OUTPUT_DIR="contributor_repos" # Check if accounts.json exists