This commit is contained in:
parent
e15eaf38b0
commit
f5819e4df0
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module.exports = function(command, commandArgs, verbose=false) {
|
||||||
console.log("Executing:", command, commandArgs.join(" "));
|
console.log("Executing:", command, commandArgs.join(" "));
|
||||||
try {
|
try {
|
||||||
const output = execFileSync(command, commandArgs, {encoding: 'utf8'})
|
const output = execFileSync(command, commandArgs, {encoding: 'utf8'})
|
||||||
if (output.length != 0 && verbose)
|
if (output.length !== 0 && verbose)
|
||||||
console.log(output)
|
console.log(output)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error executing ${command} command:`, error);
|
console.error(`Error executing ${command} command:`, error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue