Skip to content

Commit

Permalink
Adding hack close process for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
07Gond committed Mar 25, 2019
1 parent 8291627 commit 9fafed6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function foo (action) {
break

default:
console.log('\x1b[41m%s\x1b[0m','There is no action for this command. Please run "globant-nodeschool -h" for help.')
console.log('\x1b[41m%s\x1b[0m', 'There is no action for this command. Please run "globant-nodeschool -h" for help.')
process.exit(1)
}
}
Expand Down Expand Up @@ -87,7 +87,11 @@ function startWorkshop (workshop) {
opn('https://github.com/workshopper/scope-chains-closures#getting-started')
break
}
process.exit(0)

/** Hack for kill process on windows */
setTimeout(() => {
process.exit(0)
}, 1000)
}

module.exports = foo

0 comments on commit 9fafed6

Please sign in to comment.