Check an online ics file for changes
This commit is contained in:
21
icscheck/icscheck.conf.dist
Normal file
21
icscheck/icscheck.conf.dist
Normal 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:-}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user