scripts/caldav-workaround.sh
jonathan santis 6fd2abeb7e dunno
2025-01-09 11:59:12 +01:00

16 lines
417 B
Bash

CALDIR=$HOME/.calendars
file=$CALDIR/$1
mail="test@gmail.com"
set +o history
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 $mail:$pw -X PUT \
"https://apps.kolabnow.com/calendars/$mail/$1"\
-H "Content-Type:text/calendar" \
-T $file
echo "https://apps.kolabnow.com/calendars/$mail/$1"
set -o history