]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: hydractl: sync_media_add_metadata: sidecard file handling
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 02:51:07 +0000 (23:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 5 Jul 2024 02:51:07 +0000 (23:51 -0300)
share/hydractl/sync-media

index 554e09aaf41ccf2b84a8213cc3aa3459065cde71..8132315ef0e88cb8f8bb9291718e95845d34a23f 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 ! -path '*.git' -exec git annex unlock {} \;
-  find -name '*.xmp'         ! -path '*.git' -exec git add {} \;
+  find -name '*.xmp' -type l -not -path '*.git*' -exec git annex unlock {} \;
+  find -name '*.xmp'         -not -path '*.git*' -exec git add {} \;
 }
 
 # If there is a playlists folder, make sure mpd user can write to it