remove spaces

remove potential leak
remove wrong cmd echo
This commit is contained in:
Jonathan Wyss 2024-10-08 16:39:33 +02:00
parent 7b6df7cb89
commit 1464f5a1e3

View File

@ -1,18 +1,14 @@
CALDIR=$HOME/.calendars CALDIR=$HOME/.calendars
file=$CALDIR/$1 file=$CALDIR/$1
set +o history set +o history
echo "calendar/file.ics\n"
echo "calendar/file.ics PW\n"
echo $file echo $file
echo "insert PW for caldav:" echo "insert PW for caldav:"
read -s pw read -s pw
echo $pw
curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \ curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \
"https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\ "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\
-H "Content-Type:text/calendar" \ -H "Content-Type:text/calendar" \
-T $file -T $file
echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1" echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"
set -o history set -o history