Skip to content

Commit

Permalink
refactor(sh): setup_gh_repos - auth grep
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonos committed Oct 5, 2023
1 parent f23120f commit 48acef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .assets/provision/setup_gh_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fi
# *check gh authentication status and login to GitHub if necessary
retry_count=0
while [[ true && $retry_count -lt 5 ]]; do
gh auth status 2>&1 | grep -qw 'Token: gho_' && github='https://github.com/' && break || true
gh auth status 2>&1 | grep -qw 'Token:' && github='https://github.com/' && break || true
gh auth login
((retry_count++))
done
Expand Down

0 comments on commit 48acef3

Please sign in to comment.