Page MenuHomeSoftware Heritage
Paste P1187

import-ics
ActivePublic

Authored by zack on Sep 30 2021, 5:00 PM.
#!/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 changed the title of this paste from Command-Line Input to import-ics.Sep 30 2021, 5:00 PM