diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-09-17 14:10:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-09-17 14:10:00 -0300 |
commit | fb8ab93632a87880be3d492da2bd2bf5918b8b3f (patch) | |
tree | b858e2f8fd0a80f32242f2d7e320e5fd2fb8fe0c | |
parent | 72ddde6eea6034fdee98e52c5f4f20d853e4638c (diff) | |
download | scripts-fb8ab93632a87880be3d492da2bd2bf5918b8b3f.tar.gz scripts-fb8ab93632a87880be3d492da2bd2bf5918b8b3f.tar.bz2 |
Fix: copy-annotations-from-kobo: make sure to operate in the git repository
-rwxr-xr-x | copy-annotations-from-kobo | 4 |
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 |