commit df2250aa196b674c0783d3ba1862b1cfb5df5719
parent 2a47f88faae8e1e794c53ee7653d16dbe034bb15
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 28 Mar 2022 13:07:58 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 "$@"