#!/bin/bash if [ -z "$1" ]; then echo "SHOULD NOT HAPPEN ANYWAY... missing parameter: repository name"; exit 1; fi; svn export . /var/www/html/$1 >/tmp/svn_www_log 2>/tmp/svn_www_log if [ "$?" -ne 0 ]; then echo "SVN update error"; exit $?; fi;