From 317d08eee3494234e1e5f84fca0240abfdc8e2f5 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 3 Mar 2021 18:12:34 +0100 Subject: sfeed_update: return instead of exit in main() on success This is useful so the script can be included, call main and then have additional post-main functionality. --- sfeed_update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed_update b/sfeed_update index 90e9d5c..a7e94d5 100755 --- a/sfeed_update +++ b/sfeed_update @@ -204,7 +204,7 @@ main() { cleanup # on signal SIGINT and SIGTERM exit with signal number + 128. [ ${signo} -ne 0 ] && exit $((signo+128)) - exit 0 + return 0 } [ "${SFEED_UPDATE_INCLUDE}" = "1" ] || main "$@" -- cgit v1.2.3