From: Silvio Rhatto Date: Fri, 18 Apr 2014 05:32:06 +0000 (-0300) Subject: Try to copy to a remote only if it was given in the command line X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=04a6d260840dae2399e1df18a231929a63c1b807;p=puppet-backup.git Try to copy to a remote only if it was given in the command line --- diff --git a/files/sync-media b/files/sync-media index ec3a8e6..a9bd422 100644 --- a/files/sync-media +++ b/files/sync-media @@ -178,7 +178,7 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then rsync -av --delete $CACHE/$folder/ $VOLUME/$MEDIA/$folder/ fi done -else +elif [ ! -z "$DISK" ]; then # Try to copy to a remote for folder in `ls $CACHE`; do if [ -d "$CACHE/$folder/.git/annex" ]; then