From a30d9cc7fce577f5042fc2fe7d4aaaf4da54b0ba Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 2 Nov 2022 02:10:03 +0900 Subject: [PATCH] fixed logseq files sync failure --- termux/packages.bash | 1 + termux/tasks/logseq-sync | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/termux/packages.bash b/termux/packages.bash index 45535b9..ee0f7e3 100644 --- a/termux/packages.bash +++ b/termux/packages.bash @@ -4,6 +4,7 @@ gh git iproute2 jq +make mdbook nodejs-lts openssh diff --git a/termux/tasks/logseq-sync b/termux/tasks/logseq-sync index 1066930..9d1afbc 100755 --- a/termux/tasks/logseq-sync +++ b/termux/tasks/logseq-sync @@ -1,8 +1,9 @@ #!/bin/sh set -e -cd ~/storage/shared/logseq -git pull +cd ~/logseq +rsync -a ~/storage/shared/logseq/journals/ journals/ +rsync -a ~/storage/shared/logseq/pages/ pages/ git add --all if git commit -m update; then - git push + rsync -a ./ ~/storage/shared/logseq/ fi