scripts should exit rather than return

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.
This commit is contained in:
Matthew Rothenberg
2014-10-16 17:08:29 -04:00
parent ae4b93f52f
commit c234916b2b

View File

@@ -19,8 +19,8 @@ done
if [ "$failed" = "true" ]; then if [ "$failed" = "true" ]; then
echo "Tests failed!" echo "Tests failed!"
return 1; exit 1;
else else
echo "All tests passed!" echo "All tests passed!"
return 0; exit 0;
fi fi