diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/sync-media | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/sync-media b/files/sync-media index 6aee95b..8a4d3c4 100644 --- a/files/sync-media +++ b/files/sync-media @@ -186,14 +186,14 @@ else continue fi - ( - if git remote | grep -q "^$DISK$"; then + if git -C $CACHE/$folder remote | grep -q "^$DISK$"; then + ( cd $CACHE/$folder git annex copy . --to $DISK + ) else echo "No such remote $DISK" fi - ) else REMOTE="$DISK.$DOMAIN" echo "Syncing $VOLUME/$MEDIA/$folder..." |