From 8884641a46028de145838db858400450ca9203ee Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 2 Nov 2012 18:44:58 +0100 Subject: [PATCH] exit if no valid rsync config could be found --- live_build.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5