Last active
August 29, 2015 14:25
-
-
Save FredLeg/65474f8a5c3ad7321760 to your computer and use it in GitHub Desktop.
Clone tous les dépôts de la liste, pour un utilisateur donné, du moment que le dossier n'existe pas déjà sur votre disque.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
user='Webforce3' | |
depos=('jdc-poo' 'cooking' 'smarty' 'image_crop' 'movies' 'admin' 'shop' 'movies.bkp' 'lesjoiesducode' 'wf3collab' 'google_img') | |
for depo in "${depos[@]}" | |
do | |
if [ ! -d ./$depo ]; then | |
echo | |
`git clone https://github.com/$user/$depo.git` | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment