summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-28 13:07:58 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-28 13:07:58 +0200
commitdf2250aa196b674c0783d3ba1862b1cfb5df5719 (patch)
treef0bf7cc2ce4b12eedf0463ad4d7a75dc4461fe63
parent2a47f88faae8e1e794c53ee7653d16dbe034bb15 (diff)
sfeed_update: change return to exit in main
Pedantic change: Make main more consistent since other functions in it exit too and main is not supposed to return or used like that.
-rwxr-xr-xsfeed_update2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_update b/sfeed_update
index 857f537..fc7447f 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -219,7 +219,7 @@ main() {
cleanup
# on signal SIGINT and SIGTERM exit with signal number + 128.
[ ${signo} -ne 0 ] && exit $((signo+128))
- return ${status}
+ exit ${status}
}
[ "${SFEED_UPDATE_INCLUDE}" = "1" ] || main "$@"