mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Proper exit status for script/licensed
This commit is contained in:
@@ -36,8 +36,11 @@ source = Licensed::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
|
|||||||
config = Licensed::Configuration.new
|
config = Licensed::Configuration.new
|
||||||
config.sources << source
|
config.sources << source
|
||||||
|
|
||||||
if ARGV[0] == "verify"
|
command = if ARGV[0] == "verify"
|
||||||
Licensed::Command::Verify.new(config).run
|
Licensed::Command::Verify.new(config)
|
||||||
else
|
else
|
||||||
Licensed::Command::Cache.new(config).run(force: true)
|
Licensed::Command::Cache.new(config)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
command.run
|
||||||
|
exit command.success?
|
||||||
|
|||||||
Reference in New Issue
Block a user