From cb1ee35f2e2afb487ddff6fb1677d5c10f458602 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 22 May 2018 13:42:21 +0200 Subject: [PATCH] fix(ci): better deal with ci environments --- ts/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index 2727c1b..43cdf9f 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -2,8 +2,12 @@ import open = require('opn'); import { ChildProcess } from 'child_process'; export let openUrl = async urlArg => { - const childProcess = await open(urlArg, { - wait: false - }); - return childProcess; + if(!(process.env.CI === 'true')) { + const childProcess = await open(urlArg, { + wait: false + }); + return childProcess; + } else { + return null + } };