check_repos: chdir avant de find

This commit is contained in:
Daniel STAN 2015-11-10 21:05:59 +01:00
parent b88ba2a34f
commit 9194364ad0

View file

@ -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
}