Files
icsutils/icscheck/icscheck.conf.dist

25 lines
721 B
Bash

#!/usr/bin/env bash
# Configuration file for icscheck.sh
# https://winklerfamilie.eu/git/SmallThings/icsutils.git
readonly icsconf_url="https://somethi.ng"
# Only set icsconf_zip if the url points to a zip file
readonly icsconf_zip="ics_name_inside_zip_$(date +%Y).ics"
readonly icsconf_output="${HOME}/my.ics"
readonly icsconf_useragent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0"
# 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:-}"
}