aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-17 14:10:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-17 14:10:00 -0300
commitfb8ab93632a87880be3d492da2bd2bf5918b8b3f (patch)
treeb858e2f8fd0a80f32242f2d7e320e5fd2fb8fe0c
parent72ddde6eea6034fdee98e52c5f4f20d853e4638c (diff)
downloadscripts-fb8ab93632a87880be3d492da2bd2bf5918b8b3f.tar.gz
scripts-fb8ab93632a87880be3d492da2bd2bf5918b8b3f.tar.bz2
Fix: copy-annotations-from-kobo: make sure to operate in the git repository
-rwxr-xr-xcopy-annotations-from-kobo4
1 files changed, 2 insertions, 2 deletions
diff --git a/copy-annotations-from-kobo b/copy-annotations-from-kobo
index 3e10275..29c1482 100755
--- a/copy-annotations-from-kobo
+++ b/copy-annotations-from-kobo
@@ -53,7 +53,7 @@ EOT
touch "$BASEFOLDER/$sdr/metadata.$extension.lua"
# Make sure it's not locked by git annex
- git annex unlock "$BASEFOLDER/$sdr/metadata.$extension.lua"
+ git -C $BASEFOLDER annex unlock "$sdr/metadata.$extension.lua"
# Update
silentSsh kobo >"$BASEFOLDER/$sdr/metadata.$extension.lua" <<EOF
@@ -61,5 +61,5 @@ EOT
EOF
# Stage
- git add "$REMOTE_BASE/$sdr/metadata.$extension.lua"
+ git -C $BASEFOLDER add "$sdr/metadata.$extension.lua"
done