Use perl builtin chmod() instead of system()
[girocco.git] / updatecheck.sh
blob1e35625cd8f5ac72dd03b8ba5fad78b02279d46f
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 for dir in *; do
11 [ -e "$dir"/.nofetch ] && continue
12 /home/pasky/repomgr/update.sh "${dir%.git}"
13 done
15 rm /tmp/gitupdatelock