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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user