2024-10-08 14:26:34 +00:00
|
|
|
CALDIR=$HOME/.calendars
|
|
|
|
file=$CALDIR/$1
|
2025-01-09 10:59:12 +00:00
|
|
|
mail="test@gmail.com"
|
2024-10-08 14:26:34 +00:00
|
|
|
set +o history
|
2025-01-09 10:52:38 +00:00
|
|
|
echo "pass argument 1: the file in the form: adressbook/file_wich_causes_issues.ics"
|
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
|
2025-01-09 10:52:38 +00:00
|
|
|
curl --verbose --user $mail:$pw -X PUT \
|
|
|
|
"https://apps.kolabnow.com/calendars/$mail/$1"\
|
2024-10-08 14:37:36 +00:00
|
|
|
-H "Content-Type:text/calendar" \
|
2024-10-08 14:26:34 +00:00
|
|
|
-T $file
|
|
|
|
|
2025-01-09 10:52:38 +00:00
|
|
|
echo "https://apps.kolabnow.com/calendars/$mail/$1"
|
2024-10-08 14:26:34 +00:00
|
|
|
set -o history
|