mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 19:07:37 -05:00
Update scripts
This commit is contained in:
@@ -164,10 +164,14 @@ function onFinish(error) {
|
|||||||
|
|
||||||
drawTable()
|
drawTable()
|
||||||
|
|
||||||
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))
|
if (errors > 0 || warnings > 0) {
|
||||||
|
console.log(
|
||||||
|
chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`)
|
||||||
|
)
|
||||||
|
|
||||||
if (errors > 0) {
|
if (errors > 0) {
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|||||||
@@ -109,16 +109,18 @@ async function main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
if (errors.count() || warnings.count()) {
|
||||||
chalk.red(
|
console.log(
|
||||||
`\n${
|
chalk.red(
|
||||||
errors.count() + warnings.count()
|
`\n${
|
||||||
} problems (${errors.count()} errors, ${warnings.count()} warnings)`
|
errors.count() + warnings.count()
|
||||||
|
} problems (${errors.count()} errors, ${warnings.count()} warnings)`
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if (errors.count()) {
|
if (errors.count()) {
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user