X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/294904cca616839be4752a7405c0651837e68cba..cd059e58a721b71b55936ec33a13433678e9c009:/hcoop-git-maint diff --git a/hcoop-git-maint b/hcoop-git-maint index bf4b278..e7c967f 100755 --- a/hcoop-git-maint +++ b/hcoop-git-maint @@ -6,7 +6,8 @@ find /afs/hcoop.net/user -mindepth 3 -maxdepth 3 -noleaf -exec \ sh -c "test -e {}/.hcoop-git && { \ rm -f /var/cache/git/\$(basename {}); \ - ln -sf {}/.hcoop-git /var/cache/git/\$(basename {}); }" \; + ln -sf {}/.hcoop-git /var/cache/git/\$(basename {}); }" \; \ + > /dev/null 2>&1 # Remove symlinks for users that have wrong permissions IFS=$'\n' @@ -20,7 +21,8 @@ for user in $(ls -1 /var/cache/git); do ! -regex '.*/\(refs\|objects\)\(/.*\|$\)' -exec \ sh -c "! { fs la {} | \ egrep '^ +system:anyuser .*r' > /dev/null; } && \ - rm -f /var/cache/git/$user 2>/dev/null" \; + rm -f /var/cache/git/$user 2>/dev/null" \; \ + > /dev/null 2>&1 done # Update cache of front page.