Created
April 19, 2016 17:06
-
-
Save jlgarridol/c67dea9b1d7ae4b12bb1a0fd166a7c69 to your computer and use it in GitHub Desktop.
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 | |
#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