commit 04c76f86b66d2c30cadc6fef4df98cb3077ebcd9
parent cbf92f526528fc995e309d2f13b7dcebfd1e5c75
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 29 Dec 2023 13:56:42 +0100
sfeed_update: code-style and consistency: add some comments for functions
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/sfeed_update b/sfeed_update
@@ -171,6 +171,7 @@ feed() {
"${config}" "${sfeedtmpdir}" "$1" "$2" "$3" "$4"
}
+# cleanup()
cleanup() {
# remove temporary directory with feed files.
rm -rf "${sfeedtmpdir}"
@@ -184,6 +185,7 @@ die() {
exit "${statuscode}"
}
+# sighandler(signo)
sighandler() {
signo="$1"
# ignore TERM signal for myself.
@@ -192,12 +194,14 @@ sighandler() {
kill -TERM -$$
}
+# feeds()
feeds() {
printf "Configuration file \"%s\" is invalid or does not contain a \"feeds\" function.\n" "${config}" >&2
echo "See sfeedrc.example for an example." >&2
die
}
+# main(args...)
main() {
# signal number received for parent.
signo=0