Skip to content

Commit

Permalink
Improve lint rake task example to return proper exit code (#1011)
Browse files Browse the repository at this point in the history
This will make sure to return whatever the system call returned and it's useful to chain shell calls, etc.
  • Loading branch information
oboxodo authored and joshuaclayton committed Sep 28, 2017
1 parent 38a4a25 commit 07b796e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ namespace :factory_girl do
end
else
system("bundle exec rake factory_girl:lint RAILS_ENV='test'")
exit $?.exitstatus
end
end
end
Expand Down

0 comments on commit 07b796e

Please sign in to comment.