Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Created October 21, 2016 09:47
Show Gist options
  • Save yvan-sraka/00f64f5ac004dc277cd2f142d9a8d708 to your computer and use it in GitHub Desktop.
Save yvan-sraka/00f64f5ac004dc277cd2f142d9a8d708 to your computer and use it in GitHub Desktop.
#! /bin/sh -x
language='javascript'
# Get x-common repository
git clone https://github.com/exercism/x-common/
cd x-common
git pull origin master
cd ..
# Get x$language repository
git clone "https://github.com/exercism/x$language/"
cd "x$language"
git pull origin master
ls exercises | xargs -I {} curl -i -H 'Authorization: token 8ead7ebaa36901c6f12cad103c6ec23bd474271b' -X PATCH -d '{"name":"js-{}"}' https://api.github.com/repos/simplonco/{}
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment