Check an online ics file for changes

This commit is contained in:
2022-04-12 14:08:59 +02:00
parent ca7b92dde2
commit 87fc192c72
5 changed files with 129 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Configuration file for icscheck.sh
# https://winklerfamilie.eu/git/SmallThings/icsutils.git
local icsconf_url="https://somethi.ng"
local icsconf_output="${HOME}/my.ics"
# icsError
# Called if the download from ${icsconf_url} failed
icsError() {
echo ICS Error
}
# icsChanged <new ics> <previous ics> <diff file>
icsChanged() {
echo ICS Changed. Generate ${icsconf_output}
[ ! e "${2:-}" ] && printf "First "
printf 'change of %s -> %s\n' "${1:-}" "${2:-}"
}