mirror of https://github.com/embarklabs/embark.git
fix code formatting
This commit is contained in:
parent
1a756e8a05
commit
b2d6421ea6
|
@ -131,11 +131,11 @@ function pingEndpoint(host, port, type, protocol, origin, callback) {
|
|||
|
||||
function runCmd(cmd, options, callback) {
|
||||
const shelljs = require('shelljs');
|
||||
options = Object.assign({silent: true,exitOnError: true, async: true}, options || {});
|
||||
options = Object.assign({silent: true, exitOnError: true, async: true}, options || {});
|
||||
const outputToConsole = !options.silent;
|
||||
options.silent = true;
|
||||
let result = shelljs.exec(cmd, options, function (code, stdout) {
|
||||
if(code !==0) {
|
||||
if(code !== 0) {
|
||||
if (options.exitOnError) {
|
||||
return exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue