aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-01-26 14:54:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-01-26 14:54:39 -0300
commit9f440e8797b26d0bd6498acc8058331f6391d9ed (patch)
treef2e7ead2fce057b3bf45dd45ee45d62a660041c4 /share/hydractl/sync-media
parent4adddce1227e3a332f8b30cc4e0cee7d0b82a808 (diff)
downloadhydra-9f440e8797b26d0bd6498acc8058331f6391d9ed.tar.gz
hydra-9f440e8797b26d0bd6498acc8058331f6391d9ed.tar.bz2
Fix: hydractl: sync-media: do not search for files in .git folders
Diffstat (limited to 'share/hydractl/sync-media')
-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 bf95678..c4e27d4 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -67,8 +67,8 @@ function sync_media_add_metadata {
find -name metadata.pdf.lua.old -exec git add {} \;
# Darktable sidecar files
- find -name '*.xmp' -type l -exec git annex unlock {} \;
- find -name '*.xmp' -exec git add {} \;
+ find -name '*.xmp' -type l ! -path '*.git' -exec git annex unlock {} \;
+ find -name '*.xmp' ! -path '*.git' -exec git add {} \;
}
# If there is a playlists folder, make sure mpd user can write to it