From 3719c2f9ddb56a03c3c5847447173e31d7d5a17a Mon Sep 17 00:00:00 2001 From: jonathan santis Date: Thu, 9 Jan 2025 11:52:38 +0100 Subject: [PATCH] sadf --- caldav-workaround.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/caldav-workaround.sh b/caldav-workaround.sh index 23f2277..033f16b 100644 --- a/caldav-workaround.sh +++ b/caldav-workaround.sh @@ -1,14 +1,15 @@ CALDIR=$HOME/.calendars file=$CALDIR/$1 +mail="j.wyss@kolabnow.ch" set +o history -echo "calendar/file.ics\n" +echo "pass argument 1: the file in the form: adressbook/file_wich_causes_issues.ics" echo $file echo "insert PW for caldav:" read -s pw -curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \ - "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\ +curl --verbose --user $mail:$pw -X PUT \ + "https://apps.kolabnow.com/calendars/$mail/$1"\ -H "Content-Type:text/calendar" \ -T $file -echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1" +echo "https://apps.kolabnow.com/calendars/$mail/$1" set -o history