mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Don't print env vars if Node's execFileSync fails
Just print the error message, to avoid printing sensitive information (like API access tokens).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const childProcess = require('child_process');
|
||||
const helpers = require('./helpers');
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
|
||||
@@ -15,7 +15,7 @@ sizes.forEach((size) => {
|
||||
const pngFile = path.join(buildDirectory, `icon-${size}.png`);
|
||||
convertArgs.push(pngFile);
|
||||
|
||||
childProcess.execFileSync('inkscape', [
|
||||
helpers.safeExecFileSync('inkscape', [
|
||||
'-z',
|
||||
'-e',
|
||||
pngFile,
|
||||
@@ -28,4 +28,4 @@ sizes.forEach((size) => {
|
||||
});
|
||||
|
||||
convertArgs.push(outputPath);
|
||||
childProcess.execFileSync('convert', convertArgs);
|
||||
helpers.safeExecFileSync('convert', convertArgs);
|
||||
|
||||
Reference in New Issue
Block a user