diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-12-29 13:56:42 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-12-29 13:56:42 +0100 |
commit | 04c76f86b66d2c30cadc6fef4df98cb3077ebcd9 (patch) | |
tree | dfe07da7d8284293100e55b9144774f6f95110f4 | |
parent | cbf92f526528fc995e309d2f13b7dcebfd1e5c75 (diff) |
sfeed_update: code-style and consistency: add some comments for functions
-rwxr-xr-x | sfeed_update | 4 |
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 |