|
|
|
@ -52,14 +52,14 @@ module.exports = class Util { |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
static async exec(cmd, hide=null) { |
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
|
|
|
static async exec(cmd, hide = null) { |
|
|
|
if (hide == null) { |
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log(`$ ${cmd}`); |
|
|
|
} else { |
|
|
|
// Don't log sensitive information
|
|
|
|
console.log(`$ ${cmd.replace(hide, "*HIDDEN*")}`); |
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log(`$ ${cmd.replace(hide, '*HIDDEN*')}`); |
|
|
|
} |
|
|
|
|
|
|
|
if (process.platform !== 'linux') { |
|
|
|
|