]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
exit if no valid rsync config could be found
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 2 Nov 2012 17:44:58 +0000 (18:44 +0100)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 2 Nov 2012 17:44:58 +0000 (18:44 +0100)
live_build.sh

index 8c3f6f3e4b001bbc20e1dcd5f7583bf277cc9519..6b6a4112962f31c60b101cd2682c4baf4671b7e8 100755 (executable)
@@ -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