Skip to content

Instantly share code, notes, and snippets.

@jlgarridol
Created April 19, 2016 17:06
Show Gist options
  • Save jlgarridol/c67dea9b1d7ae4b12bb1a0fd166a7c69 to your computer and use it in GitHub Desktop.
Save jlgarridol/c67dea9b1d7ae4b12bb1a0fd166a7c69 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Creado por JKA Network (JoseluCross, Kprkpr, Yukialba) <contacto@jkanetwork.com>
#Primero la función
function update {
UAH=$(ls -d */)
for j in $UAH
do
if [ -d "$j" ];then
cd $j
git pull
cd ..
fi
done
}
#Actualizamos el sistema (modo Arch, cambiar si es necesario
sudo pacman -Syyu --noconfirm
#Actualizamos nuestros repositorios git (cambiar por tu sistema de archivos)
#Ejemplo, el destino debe ser según necesite
#
cd GitLab
update
cd ..
#
cd GitHub
update
cd ..
#
cd AUR
update
cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment