Skip to content

Commit

Permalink
fix(terminated): chmod terminate.sh before run
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Aug 23, 2019
1 parent f5c786b commit 5bbbee4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@nodepack/utils/src/terminate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const execa = require('execa')
const path = require('path')
const fs = require('fs-extra')
const {
isWindows,
isLinux,
Expand All @@ -23,6 +24,7 @@ exports.terminate = async function (childProcess, cwd) {
} else if (isLinux || isMacintosh) {
try {
const cmd = path.resolve(__dirname, './terminate.sh')
await fs.chmod(cmd, 0o777)
const result = await execa(cmd, [childProcess.pid.toString()], {
cwd,
})
Expand Down

0 comments on commit 5bbbee4

Please sign in to comment.