Small tweaks

This commit is contained in:
Pieter Vander Vennet 2021-04-10 16:06:01 +02:00
parent 081a281c04
commit cd6f511bda
5 changed files with 17 additions and 12 deletions

View file

@ -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
}