Skip to content

Commit a72f362

Browse files
committed
Pass environment variables on to child process.
Partially fixes #5.
1 parent 116d22d commit a72f362

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/script-view.coffee

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ class ScriptView extends ScrollView
2828
# Default to where the user opened atom
2929
options =
3030
cwd: atom.project.getPath()
31+
env: process.env
3132

32-
console.log("Running " + command + " " + args)
33+
console.log("Running " + command + " " + args.join(" "))
3334

3435
stdout = (output) => @addLine(output, "stdout")
3536
stderr = (output) => @addLine(output, "stderr")
3637
exit = (return_code) -> console.log("Exited with #{return_code}")
3738

38-
process = new BufferedProcess({command, args, options, stdout, stderr, exit})
39+
bufferedProcess = new BufferedProcess({command, args, options, stdout, stderr, exit})

0 commit comments

Comments
 (0)