From 3eaf920db28e81c1faacb9332e48322f94523c44 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 2 Jan 2018 21:59:21 +0200 Subject: [PATCH] Fixed travis scripts --- scripts/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/module.js b/scripts/module.js index 254afdeaa..9d5f73cdb 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -8,7 +8,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() && (process.env['TRAVIS_EVENT_TYPE'] !== 'cron' || process.env['TRAVIS_EVENT_TYPE'] !== 'api')) { +if(isTravisCI() && process.env['TRAVIS_EVENT_TYPE'] !== 'cron' && process.env['TRAVIS_EVENT_TYPE'] !== 'api') { console.log(`${chalk.green('NOBUILD')} Module build terminated, not a cron job or a custom build!`); process.exit(0); }