aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-11-08 18:13:50 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-11-08 18:13:50 -0200
commit88e3a4131b2f8ead94ce8a808427d080cc411629 (patch)
tree8c7030d172905926514c5f5576c891d43b2a6eaa /share
parentfa29e7a54b861e79ea1e91d7d1b62a62bc36e0bf (diff)
downloadhydra-88e3a4131b2f8ead94ce8a808427d080cc411629.tar.gz
hydra-88e3a4131b2f8ead94ce8a808427d080cc411629.tar.bz2
Run a custom synchronizer at sync-media
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/sync-media5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index a63f782..b34df6a 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -261,6 +261,11 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
fi
fi
+ # Run a custom synchronizer
+ if [ ! -x "$CACHE/$folder/.sync-media/custom" ]; then
+ $CACHE/$folder/.sync-media/custom $VOLUME/$MEDIA/$folder
+ fi
+
# Ensure the local cache has each repository listed in the removable media
if [ ! -d "$CACHE/$folder" ]; then
if [ -d "$VOLUME/$MEDIA/$folder/.git" ]; then