Fix updating of forked projects
[girocco/ztw.git] / updatecheck.sh
blob96fcbe589d720e1868455daa9395218ddc68205e
1 #!/bin/bash
3 if [ -e /tmp/gitupdatelock ]; then
4 echo "Locked!" >&2
5 exit 1
6 fi
7 touch /tmp/gitupdatelock
9 cd /srv/git
10 find . -name base_url | cut -c 3- | sed -e 's/\/base_url$//' |
11 while read dir; do
12 [ -e "$dir"/.nofetch ] && continue
13 /home/repo/repomgr/update.sh "${dir%.git}"
14 done
16 rm /tmp/gitupdatelock