]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Try to copy to a remote only if it was given in the command line
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:32:06 +0000 (02:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:32:06 +0000 (02:32 -0300)
files/sync-media

index ec3a8e676e0f1ce4716c11db0ae07f712af60a2b..a9bd42234bc5b8c94af1b0bd87ab4854e4643c0c 100644 (file)
@@ -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