X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/253d533797c473e091840d3098f7eb98a32202b3..863f93ee88d0173e3da0e6380b541cc3c70f7033:/hcoop-git-maint diff --git a/hcoop-git-maint b/hcoop-git-maint index d148f2a..05e3f37 100755 --- a/hcoop-git-maint +++ b/hcoop-git-maint @@ -10,5 +10,9 @@ find /afs/hcoop.net/user -mindepth 3 -maxdepth 3 -noleaf -exec \ # Update cache of front page. cache=/var/local/lib/gitweb/indexcache.html wget -q -O $cache.tmp 'http://git.hcoop.net/?nocache=y' -chmod a+r $cache.tmp -mv $cache.tmp $cache +if test -s $cache.tmp; then + chmod a+r $cache.tmp + mv $cache.tmp $cache +else + rm -f $cache.tmp +fi