From c234916b2bdb2d54b4ff7dc7c77e44029ee07c1e Mon Sep 17 00:00:00 2001 From: Matthew Rothenberg Date: Thu, 16 Oct 2014 17:08:29 -0400 Subject: [PATCH] scripts should exit rather than return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit some shells are pickier about this. darwin uses a newer version of sh that complains about it. this is the ‘proper’ behavior in either scenario. --- run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 877f9ed..2d5c061 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -19,8 +19,8 @@ done if [ "$failed" = "true" ]; then echo "Tests failed!" - return 1; + exit 1; else echo "All tests passed!" - return 0; + exit 0; fi