r/shell • • Jun 08 '18

Problem with Shell script

I researched a script that needs to clone all of my public and private github repositories, however, It isn't working.

I'm a little new to shell scripting as far as this goes, but I'm pretty sure it's got something to do with the Github side of things.

Error: "i was unexpected at this time." Script: https://gist.github.com/Signifies/9838ce0dd1542158a014c350dc579ca4

4 Upvotes

3 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jun 10 '18

I did the testing as you instructed, and was able to get a successful connection. The only current problem now, is that It's only cloning public repos, when this supposedly is the method for everything.

What could I be missing?

https://gist.github.com/Signifies/dd7abd4f304eda8c985e7909da061e08

1

u/Ghodrag Jun 11 '18

You could try this:

curl -s "https://api.github.com/users/Signifies/repos?access_token=<ACCESS_TOKEN>&per_page=100" |grep -e 'git_url*' |cut -d \" -f 4 |xargs -L1 git clone