forked from ahurac/dotfiles
updateall : ajustement script update git
This commit is contained in:
parent
80c20a3404
commit
cfeb1d35cf
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -x
|
||||||
|
|
||||||
if [ -z "$SSH_AGENT_PID" ]; then
|
if [ -z "$SSH_AGENT_PID" ]; then
|
||||||
exec ssh-agent "$0" "$@"
|
exec ssh-agent "$0" "$@"
|
||||||
|
@ -12,9 +12,9 @@ update_repo() {
|
||||||
git pull
|
git pull
|
||||||
}
|
}
|
||||||
|
|
||||||
cd ~/git
|
cd ~/git || exit
|
||||||
|
|
||||||
set +ex
|
set +x
|
||||||
for i in *; do
|
for i in *; do
|
||||||
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
|
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue