forked from ahurac/dotfiles
updateall : script update git ssh-agent
This commit is contained in:
parent
90940fb3a4
commit
22c5766009
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
ssh-add
|
||||||
|
|
||||||
update_repo() {
|
update_repo() {
|
||||||
cd "$1" || return
|
cd "$1" || return
|
||||||
|
@ -6,8 +8,9 @@ update_repo() {
|
||||||
git pull
|
git pull
|
||||||
}
|
}
|
||||||
|
|
||||||
cd ~/git || exit
|
cd ~/git
|
||||||
|
|
||||||
|
set +ex
|
||||||
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