From 3a505db37bdc6625d9778f4b927f15a80dd3b6ec Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Mon, 20 May 2013 14:36:02 -0400 Subject: [PATCH] [cluster] deploy: skip non-existing files In "one-by-one" mode, test the existence of a file before to try to transfer it. --- cluster/cluster-deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/cluster-deploy.sh b/cluster/cluster-deploy.sh index b3d4ef7..4c11dc7 100755 --- a/cluster/cluster-deploy.sh +++ b/cluster/cluster-deploy.sh @@ -125,6 +125,10 @@ fi # ... or one by one for FILE in "$@" ; do echo "Deploying '$FILE'..." + if [ ! -e "$FILE" ] ; then + echo "This file doesn't exist, skipping." + continue + fi if [ "$RSYNC" = "1" ] ; then $PRSYNC -a $DELETE $LOGIN -h "$HOSTS" -- "$FILE" "$DEST_DIR" else