Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1187
import-ics
Active
Public
Actions
Authored by
zack
on Sep 30 2021, 5:00 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/bin/bash
# SPDX-FileCopyrightText: © 2021 Stefano Zacchiroli <zack@upsilon.cc>
# SPDX-License-Identifier: GPL-3.0-or-later
ics
=
"
$1
"
if
[
-z
"
$ics
"
]
;
then
echo
"Usage: import-ics ICS_FILE"
exit
2
fi
tmpfile
=
$(
mktemp -t import-ics.tmp.XXXXXXXXXX
)
trap
"rm -f
${
tmpfile
}
"
EXIT
cp
"
$ics
"
"
$tmpfile
"
evolution -i
"
$tmpfile
"
# sleep 1
echo
"I: Waiting for evolution to import file. Hit Enter when done to exit."
read
Event Timeline
zack
created this paste.
Sep 30 2021, 5:00 PM
2021-09-30 17:00:26 (UTC+2)
zack
changed the title of this paste from
Command-Line Input
to
import-ics
.
Sep 30 2021, 5:00 PM
2021-09-30 17:00:39 (UTC+2)
Log In to Comment