Small tweaks
This commit is contained in:
parent
081a281c04
commit
cd6f511bda
5 changed files with 17 additions and 12 deletions
|
@ -202,7 +202,9 @@ if(missingLicenses.length > 0){
|
|||
const msg = `There are ${missingLicenses.length} licenses missing.`
|
||||
if(process.argv.indexOf("--no-fail") >= 0){
|
||||
console.log(msg)
|
||||
}else{
|
||||
}else if(process.argv.indexOf("--report") >= 0){
|
||||
writeFileSync("missing_licenses.txt", missingLicenses.join("\n"))
|
||||
} else{
|
||||
|
||||
throw msg
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue