From f20934ac8ce97912d19af1ccebb75bd661f20a7f Mon Sep 17 00:00:00 2001 From: Subramanian Venkatesan Date: Mon, 10 Sep 2018 14:11:40 +0530 Subject: [PATCH] Use Object.assign --- lib/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/utils.js b/lib/utils/utils.js index eb6c38376..9a3ef31a9 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -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);