From df2250aa196b674c0783d3ba1862b1cfb5df5719 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 28 Mar 2022 13:07:58 +0200 Subject: 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. --- sfeed_update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfeed_update') 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 "$@" -- cgit v1.2.3