From 04a6d260840dae2399e1df18a231929a63c1b807 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Apr 2014 02:32:06 -0300 Subject: Try to copy to a remote only if it was given in the command line --- files/sync-media | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') 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 -- cgit v1.2.3