fix: Allow create_contributor_repo_lists.sh to accept accounts.json path

This commit is contained in:
Saravana Dhandapani 2025-07-10 02:11:00 -07:00
parent 13b871cbb2
commit 4b560087b1

View File

@ -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