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