diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-28 13:07:58 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-28 13:07:58 +0200 |
commit | df2250aa196b674c0783d3ba1862b1cfb5df5719 (patch) | |
tree | f0bf7cc2ce4b12eedf0463ad4d7a75dc4461fe63 /sfeed_update | |
parent | 2a47f88faae8e1e794c53ee7653d16dbe034bb15 (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.
Diffstat (limited to 'sfeed_update')
-rwxr-xr-x | sfeed_update | 2 |
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 "$@" |