1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/config/updateall/scripts/70-git

19 lines
262 B
Text
Raw Normal View History

#!/bin/sh
update_repo() {
cd "$1" || return
printf 'Updating repository \033[1m%s\033[0m...\n' "$1"
git pull
}
cd ~/git || exit
for i in *; do
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
sleep 1
done
update_repo "$i" &
done
2023-04-13 00:16:36 +02:00
wait