summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-12-29 13:56:42 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-12-29 13:56:42 +0100
commit04c76f86b66d2c30cadc6fef4df98cb3077ebcd9 (patch)
treedfe07da7d8284293100e55b9144774f6f95110f4 /sfeed_update
parentcbf92f526528fc995e309d2f13b7dcebfd1e5c75 (diff)
sfeed_update: code-style and consistency: add some comments for functions
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfeed_update b/sfeed_update
index 1f797f8..18096ea 100755
--- 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