From a2a06bf31394b52b84890f2f27a54a5f3d5a4a7e Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 9 Nov 2022 01:10:26 +0900 Subject: [PATCH] fix logseq sync --- termux/tasks/logseq-sync | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/termux/tasks/logseq-sync b/termux/tasks/logseq-sync index 9d1afbc..77446fc 100755 --- a/termux/tasks/logseq-sync +++ b/termux/tasks/logseq-sync @@ -1,9 +1,7 @@ #!/bin/sh -set -e 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 - rsync -a ./ ~/storage/shared/logseq/ -fi +git commit -m update +rsync -a --update ./ ~/storage/shared/logseq/