2023-06-04 19:38:42 +02:00
|
|
|
#!/bin/sh
|
2023-12-01 14:26:47 +01:00
|
|
|
|
|
|
|
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
|
2023-05-03 08:06:35 +02:00
|
|
|
done
|
2023-12-01 14:26:47 +01:00
|
|
|
update_repo "$i" &
|
|
|
|
done
|
2023-04-13 00:16:36 +02:00
|
|
|
|
2023-12-01 14:26:47 +01:00
|
|
|
wait
|