Fixed scripts

This commit is contained in:
Angelos Chalaris
2018-01-02 21:23:56 +02:00
parent ea41326a0f
commit 38b63c8f8f
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ const path = require('path');
const chalk = require('chalk');
// Load helper functions (these are from existing snippets in 30 seconds of code!)
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
if(isTravisCI() && (/^Travis build: \d+/g.test(process.env['TRAVIS_COMMIT_MESSAGE'])) {
if(isTravisCI() && /^Travis build: \d+/g.test(process.env['TRAVIS_COMMIT_MESSAGE'])) {
console.log(`${chalk.green('NOBUILD')} Linting terminated, parent commit is a Travis build!`);
process.exit(0);
}