scripts/caldav-workaround.sh

15 lines
376 B
Bash
Raw Normal View History

CALDIR=$HOME/.calendars
file=$CALDIR/$1
set +o history
echo "calendar/file.ics\n"
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"\
-H "Content-Type:text/calendar" \
-T $file
echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"
set -o history