#!/bin/sh SVNLOOK=/usr/bin/svnlook REPOS="$1" TXN="$2" # Check that this is not trying to write to a write protected dir while read DIR ; do $SVNLOOK changed -t "$TXN" "$REPOS" | grep "^.*$DIR" > /dev/null if [ $? -eq 0 ] ; then echo "" > /dev/stderr echo "You tried to write to a directory that is write protected. Request rejected." > /dev/stderr exit 1 fi done < /srv/svn/conf/write-protected-directories.txt exit 0