]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: hydractl: sync-media: do not search for files in .git folders
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Jan 2024 17:54:39 +0000 (14:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Jan 2024 17:54:39 +0000 (14:54 -0300)
share/hydractl/sync-media

index bf95678e4e5293a821f6b5d4648bee6f364e82da..c4e27d4dc53352daba391fc60686c4e973cf7995 100755 (executable)
@@ -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