scripts/caldav-workaround.sh
Jonathan Wyss 1464f5a1e3 remove spaces
remove potential leak
remove wrong cmd echo
2024-10-08 16:39:33 +02:00

15 lines
376 B
Bash

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