commit 722461d14695eeb55c04507e18c9c97a6ee3d211
parent 880c9e4477c7144b5f5c35e6c197c62d950597ed
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 25 Nov 2020 09:18:03 +0100
plumb: sync calendar before adding new events
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -86,6 +86,7 @@ handle_calendar_invite() {
read -r
case "$REPLY" in
Y|y|YES|Yes|yes|myes)
+ rsync -a adamsgaard.dk:~/.calendar/calendar "$calendar"
month="$(printf '%s' "$starttime" | \
sed 's/.*-\([0-1][0-9]\)-[0-3][0-9].*/\1/')"
day="$(printf '%s' "$starttime" | \
@@ -102,8 +103,7 @@ handle_calendar_invite() {
"$hour_start" "$min_start" "$hour_end" "$min_end" \
"$summary" "$location" "$tzone"\
>> "$calendar"
- rsync "$calendar" adamsgaard.dk:~/.calendar
- upload "$calendar" >/dev/null;;
+ rsync -a "$calendar" adamsgaard.dk:~/.calendar;;
*) ;;
esac
}