Skip to content

Commit

Permalink
Merge pull request #95 from AtomLinter/steelbrain/do-not-change-path
Browse files Browse the repository at this point in the history
Do not modify process.env
  • Loading branch information
Arcanemagus committed Jan 11, 2016
2 parents fffb5f0 + 60c3942 commit cecba77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Upcoming

* Fix a bug where linter execution modifies `process.env`

### 4.3.1

* Remove `createElement` helper, reason is nobody was using it (according to GitHub code search)
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const assign = Object.assign || function (target, source) {

function _exec(command, args, opts, isNode) {
const options = assign({
env: process.env,
env: assign({}, process.env),
stream: 'stdout',
throwOnStdErr: true
}, opts);
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const assign = Object.assign || function(target, source) {

function _exec(command, args, opts, isNode) {
const options = assign({
env: process.env,
env: assign({}, process.env),
stream: 'stdout',
throwOnStdErr: true
}, opts)
Expand Down

0 comments on commit cecba77

Please sign in to comment.