commit 1abf3e332ba78e387122ccede40e072038b1158f parent 2ec72bb730c0edffd645368c70dda1c5c9e9e90b Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 19 Jan 2021 16:39:12 +0100 calendar.sh: use git repo Diffstat:
M | .local/bin/calendar.sh | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.local/bin/calendar.sh b/.local/bin/calendar.sh @@ -1,5 +1,7 @@ #!/bin/sh set -e -rsync -a adamsgaard.dk:~/.calendar ~ -$EDITOR ~/.calendar/calendar -rsync -a ~/.calendar adamsgaard.dk:~ +cd "${HOME}/.calendar" +git pull +$EDITOR "${HOME}/.calendar/calendar" +git commit -a -m 'auto commit' +git push