From bfd2a196ef05641dff85663416d77445ea34c2de Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 12 Nov 2022 16:52:57 +0900 Subject: [PATCH] no use rsync --- termux/packages.bash | 2 -- termux/tasks/logseq-sync | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/termux/packages.bash b/termux/packages.bash index ee0f7e3..0032e5f 100644 --- a/termux/packages.bash +++ b/termux/packages.bash @@ -4,11 +4,9 @@ gh git iproute2 jq -make mdbook nodejs-lts openssh rclone -rsync sqlite ) diff --git a/termux/tasks/logseq-sync b/termux/tasks/logseq-sync index 77446fc..655076b 100755 --- a/termux/tasks/logseq-sync +++ b/termux/tasks/logseq-sync @@ -1,7 +1,6 @@ #!/bin/sh -cd ~/logseq -rsync -a ~/storage/shared/logseq/journals/ journals/ -rsync -a ~/storage/shared/logseq/pages/ pages/ +set -e +cd ~/storage/shared/logseq git add --all -git commit -m update -rsync -a --update ./ ~/storage/shared/logseq/ +git commit -m update || : +. .githooks/post-commit