diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 9a3ef31a..db8922de 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 = Object.assign({silent: true, exitOnError: true}, options); + options = Object.assign({silent: true, exitOnError: true}, options || {}); let result = shelljs.exec(cmd); if (result.code !== 0) { console.log("error doing.. " + cmd);