miércoles, 7 de octubre de 2015

Decargar repositorios publicos bitbucket con script en bash

El siguiente script para linux llamado gitcloneejercicios.sh permite descargar todos los repositorios públicos de bitbucket y ponerlos en la carpeta /home/paco/NetBeansProjects/ejercicios/

# Por Paco Aldarias, 7/8/2011
p="/home/paco/NetBeansProjects/"
c=${p}"ejercicios"

if [ ! -d ${c} ];then
 echo "Creando $c"
 mkdir ${c}
fi

cd ${c}

for t in $(seq 1 10);do
     git clone ssh://git@altssh.bitbucket.org:443/1516ceed1/1415ceed1prgt${t}e10
     git clone ssh://git@altssh.bitbucket.org:443/1516ceed1/1415ceed1prgt${t}e20
done

No hay comentarios:

Publicar un comentario