Skip to content

Commit

Permalink
Proper exit status for script/licensed
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Apr 16, 2016
1 parent 9289704 commit 12228fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions script/licensed
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ source = Licensed::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
config = Licensed::Configuration.new
config.sources << source

if ARGV[0] == "verify"
Licensed::Command::Verify.new(config).run
command = if ARGV[0] == "verify"
Licensed::Command::Verify.new(config)
else
Licensed::Command::Cache.new(config).run(force: true)
Licensed::Command::Cache.new(config)
end

command.run
exit command.success?

0 comments on commit 12228fb

Please sign in to comment.