Skip to content

Commit

Permalink
fix: newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala committed Nov 4, 2024
1 parent bf89836 commit b5b803f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ done
echo "Full list to be backed up: $orgs"

echo "$all_orgs" | while IFS= read -r GITHUB_ORG_TO_BACKUP; do

#remove newlines
GITHUB_ORG_TO_BACKUP=$(echo "$GITHUB_ORG_TO_BACKUP" | tr -d '\n')
echo "STARTING BACKUP OF: https://github.com/${GITHUB_ORG_TO_BACKUP}"

repos=$(gh repo list $GITHUB_ORG_TO_BACKUP -L 100000 --json nameWithOwner -q '.[].nameWithOwner')
Expand Down

0 comments on commit b5b803f

Please sign in to comment.