fix(ci): better deal with ci environments
This commit is contained in:
parent
9681acdcc4
commit
cb1ee35f2e
@ -2,8 +2,12 @@ import open = require('opn');
|
|||||||
import { ChildProcess } from 'child_process';
|
import { ChildProcess } from 'child_process';
|
||||||
|
|
||||||
export let openUrl = async urlArg => {
|
export let openUrl = async urlArg => {
|
||||||
|
if(!(process.env.CI === 'true')) {
|
||||||
const childProcess = await open(urlArg, {
|
const childProcess = await open(urlArg, {
|
||||||
wait: false
|
wait: false
|
||||||
});
|
});
|
||||||
return childProcess;
|
return childProcess;
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user