From: Mathias Klette Date: Fri, 2 Nov 2012 17:44:58 +0000 (+0100) Subject: exit if no valid rsync config could be found X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=8884641a46028de145838db858400450ca9203ee;p=profitbricks%2Fjenkins-build-scripts.git exit if no valid rsync config could be found --- diff --git a/live_build.sh b/live_build.sh index 8c3f6f3..6b6a411 100755 --- a/live_build.sh +++ b/live_build.sh @@ -43,6 +43,11 @@ case $LIVE_TYPE in RSYNC_FILTER='' ;; esac +if [ -z "$RSYNC_SRC" -o -z "$RSYNC_DST" ] +then + echo "Rsync configurations are empty. Check $0-script." + exit 2 +fi # # Export variables for upcoming sudo-calls