Skip to content

Commit

Permalink
Bump execa
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
sindresorhus committed Sep 14, 2018
1 parent 5e28466 commit 64245a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module.exports = shell => {

return execa(shell || defaultShell, args)
.then(result => parseEnv(result.stdout))
.catch(err => {
.catch(error => {
if (shell) {
throw err;
throw error;
} else {
return process.env;
}
Expand All @@ -41,9 +41,9 @@ module.exports.sync = shell => {
try {
const {stdout} = execa.sync(shell || defaultShell, args);
return parseEnv(stdout);
} catch (err) {
} catch (error) {
if (shell) {
throw err;
throw error;
} else {
return process.env;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
],
"dependencies": {
"default-shell": "^1.0.1",
"execa": "^0.10.0",
"execa": "^1.0.0",
"strip-ansi": "^4.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 64245a6

Please sign in to comment.