mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +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