# when the svn server has problems, this can very well last quite a while
COMMAND=$(basename $0)
-running=$(pgrep $COMMAND 2> /dev/null)
+pid=$$
+running=$(pgrep $COMMAND 2> /dev/null | grep -v "^${pid}"'^' )
# bail out if another instance is already running
[ -n "$running" ] && exit 1