Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for 404s when iterating through repo list #21

Open
pdurbin opened this issue Feb 26, 2019 · 0 comments
Open

Check for 404s when iterating through repo list #21

pdurbin opened this issue Feb 26, 2019 · 0 comments

Comments

@pdurbin
Copy link
Member

pdurbin commented Feb 26, 2019

To prevent issues like #19 we should make sure we get at 200 response for each repo in github.tsv.

For now we can use this script:

#!/bin/bash
while read url; do
  curl -s -o /dev/null -I -w "%{http_code}" $url
  echo " $url"
  sleep .2
done < github.tsv

It'll show output like this:

200 https://github.com/berkmancenter/amber_apache
200 https://github.com/berkmancenter/amber_common
200 https://github.com/berkmancenter/amber_drupal
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant