From: mwolson_admin Date: Sat, 4 Apr 2009 19:30:41 +0000 (-0400) Subject: hcoop-git-maint: Send output to /dev/null. X-Git-Url: https://git.hcoop.net/hcoop/zz_old/misc/scripts.git/commitdiff_plain/6671a96c3dbbf935458f6034e91345e666a3f076?hp=4a28134805dfc5b6bef1843f5716961a1bf9954f hcoop-git-maint: Send output to /dev/null. --- 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.