check_repos: chdir avant de find
This commit is contained in:
parent
b88ba2a34f
commit
9194364ad0
1 changed files with 1 additions and 1 deletions
|
@ -19,12 +19,12 @@ check_repo () {
|
|||
}
|
||||
|
||||
fetch_updates () {
|
||||
cd $1
|
||||
if test ! "`find .git/FETCH_HEAD -mmin +$PERIOD`"; then
|
||||
return
|
||||
fi
|
||||
umask 002
|
||||
echo "fetching $1"
|
||||
cd $1
|
||||
git fetch origin > /dev/null
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue