aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/sync-media4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 000909f..bff3987 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -207,7 +207,7 @@ for folder in `ls $CACHE`; do
if [ -d "$CACHE/$folder/.git/annex" ]; then
(
- cd $VOLUME/$MEDIA
+ cd $VOLUME/$MEDIA/$folder
git annex init $DRIVE && git config sync-media.getall true
)
fi
@@ -281,7 +281,7 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
if [ -d "$VOLUME/$MEDIA/$folder/.git/annex" ]; then
(
- cd $CACHE
+ cd $CACHE/$folder
git annex init $HOST
)
fi