From 56bb32d68a95be22726113a68c4ce9ee2e251b19 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 4 Jul 2024 23:51:07 -0300 Subject: Fix: hydractl: sync_media_add_metadata: sidecard file handling --- share/hydractl/sync-media | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 554e09a..8132315 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 ! -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 -- cgit v1.2.3