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