Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

feat: propagate process environment variables #856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/command.js
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ module.exports = function (proto) {
return cb(new Error("imageMagick does not support minify, use -scale or -sample. Alternatively, use graphicsMagick"));
}
try {
proc = spawn(bin, args);
proc = spawn(bin, args, {env: process.env});
} catch (e) {
return cb(e);
}
2 changes: 1 addition & 1 deletion lib/compare.js
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ module.exports = exports = function (proto) {
var cmd = bin + ' ' + args.map(utils.escape).join(' ')
debug(cmd);

var proc = spawn(bin, args);
var proc = spawn(bin, args, {env: process.env});
var stdout = '';
var stderr = '';
proc.stdout.on('data',function(data) { stdout+=data });