aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-26 15:48:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-26 15:48:41 -0300
commit42b13d0d61555abe706b1b48f4ece23965a2e308 (patch)
tree42b7c0d42c6d45a34fa669d3ce38af8d8aaf4390
parent2c2310a2482cd8a454f92e46dc3de5d33e57fcbb (diff)
downloadhydra-42b13d0d61555abe706b1b48f4ece23965a2e308.tar.gz
hydra-42b13d0d61555abe706b1b48f4ece23965a2e308.tar.bz2
Fix: sync-media: sync_media_add_metadata: improved symlink handling
-rwxr-xr-xshare/hydractl/sync-media10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 4f9ea7d..69c4ed3 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -53,13 +53,13 @@ function sync_media_add {
# Add meta files, making sure they're handled directly by Git
function sync_media_add_metadata {
# Koreader metadata files
- find -name metadata.pdf.lua -exec git annex unlock {} \;
- find -name metadata.pdf.lua -exec git add {} \;
- find -name metadata.pdf.lua.old -exec git annex unlock {} \;
- find -name metadata.pdf.lua.old -exec git add {} \;
+ find -name metadata.pdf.lua -type l -exec git annex unlock {} \;
+ find -name metadata.pdf.lua -exec git add {} \;
+ find -name metadata.pdf.lua.old -type l -exec git annex unlock {} \;
+ find -name metadata.pdf.lua.old -exec git add {} \;
# Darktable sidecar files
- find -name '*.xmp' -exec git annex unlock {} \;
+ find -name '*.xmp' -type l -exec git annex unlock {} \;
find -name '*.xmp' -exec git add {} \;
}