mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-24 04:31:27 +00:00
fix runCmd
This commit is contained in:
parent
f20934ac8c
commit
78bc27ad95
@ -131,7 +131,7 @@ function pingEndpoint(host, port, type, protocol, origin, callback) {
|
|||||||
|
|
||||||
function runCmd(cmd, options, callback) {
|
function runCmd(cmd, options, callback) {
|
||||||
const shelljs = require('shelljs');
|
const shelljs = require('shelljs');
|
||||||
options = Object.assign({silent: true, exitOnError: true}, options);
|
options = Object.assign({silent: true, exitOnError: true}, options || {});
|
||||||
let result = shelljs.exec(cmd);
|
let result = shelljs.exec(cmd);
|
||||||
if (result.code !== 0) {
|
if (result.code !== 0) {
|
||||||
console.log("error doing.. " + cmd);
|
console.log("error doing.. " + cmd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user