Skip to content

Commit 69c5f30

Browse files
authored
refactor: fix a typo (#46)
1 parent bfd262b commit 69c5f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) {
295295
opts.log.verbose('lifecycle', logid(pkg, stage), 'stderr', data.toString())
296296
})
297297
process.once('SIGTERM', procKill)
298-
process.once('SIGINT', procInterupt)
298+
process.once('SIGINT', procInterrupt)
299299
process.on('exit', procKill)
300300

301301
function procError (er) {
@@ -316,7 +316,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) {
316316
er.pkgname = pkg.name
317317
}
318318
process.removeListener('SIGTERM', procKill)
319-
process.removeListener('SIGTERM', procInterupt)
319+
process.removeListener('SIGTERM', procInterrupt)
320320
process.removeListener('SIGINT', procKill)
321321
return cb(er)
322322
}
@@ -326,7 +326,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) {
326326
called = true
327327
proc.kill()
328328
}
329-
function procInterupt () {
329+
function procInterrupt () {
330330
proc.kill('SIGINT')
331331
proc.on('exit', () => {
332332
process.exit()

0 commit comments

Comments
 (0)