mirror of https://github.com/embarklabs/embark.git
Use Object.assign
This commit is contained in:
parent
4823d2312e
commit
f20934ac8c
|
@ -131,7 +131,7 @@ function pingEndpoint(host, port, type, protocol, origin, callback) {
|
|||
|
||||
function runCmd(cmd, options, callback) {
|
||||
const shelljs = require('shelljs');
|
||||
options = options || {silent: true, exitOnError: true};
|
||||
options = Object.assign({silent: true, exitOnError: true}, options);
|
||||
let result = shelljs.exec(cmd);
|
||||
if (result.code !== 0) {
|
||||
console.log("error doing.. " + cmd);
|
||||
|
|
Loading…
Reference in New Issue