2024-10-08 14:26:34 +00:00
|
|
|
CALDIR=$HOME/.calendars
|
|
|
|
file=$CALDIR/$1
|
|
|
|
set +o history
|
2024-10-08 14:39:33 +00:00
|
|
|
echo "calendar/file.ics\n"
|
2024-10-08 14:26:34 +00:00
|
|
|
echo $file
|
|
|
|
echo "insert PW for caldav:"
|
2024-10-08 14:37:36 +00:00
|
|
|
read -s pw
|
2024-10-08 14:26:34 +00:00
|
|
|
curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \
|
|
|
|
"https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\
|
2024-10-08 14:37:36 +00:00
|
|
|
-H "Content-Type:text/calendar" \
|
2024-10-08 14:26:34 +00:00
|
|
|
-T $file
|
|
|
|
|
|
|
|
echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"
|
|
|
|
set -o history
|