From 90438422ed3fd20a4197dd01222e23a03aaa220d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 14 Sep 2019 03:39:39 +0200 Subject: [PATCH] Use "exit" instead of "return" when outside of functions --- doc/scripts/template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/scripts/template.sh b/doc/scripts/template.sh index c6f2324..723f9ae 100755 --- a/doc/scripts/template.sh +++ b/doc/scripts/template.sh @@ -180,7 +180,7 @@ while [ $# -gt 0 ]; do ;; *) _error "$target: Unknown type" - return 2 + exit 2 ;; esac exit $?