diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-18 01:28:47 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-18 01:28:47 -0300 |
commit | 292d09d068d2efa2b310ff84ef0e9cf57f1cb421 (patch) | |
tree | 1daae6c117b3e111d94907da8a0449a3811e9384 /files/sync-media | |
parent | 3be44e4255cd4dbdc6d1c3319eb9df590cf46078 (diff) | |
download | puppet-backup-292d09d068d2efa2b310ff84ef0e9cf57f1cb421.tar.gz puppet-backup-292d09d068d2efa2b310ff84ef0e9cf57f1cb421.tar.bz2 |
Fix git remote test at sync-media
Diffstat (limited to 'files/sync-media')
-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..." |