updateall : suppression script git
This commit is contained in:
parent
7536613376
commit
17ddadab1b
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
[ -z "$SSH_AGENT_PID" ] && exec ssh-agent -- "$0" "$@"
|
||||
ssh-add
|
||||
|
||||
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
|
||||
wait
|
Loading…
Reference in a new issue