Skip to content

Commit

Permalink
Update: Kill the process if local hacker isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Kellen authored and phated committed Dec 24, 2018
1 parent dc80404 commit 664ebd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/hacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ function invoke (env) {
console.log('Working directory changed to', env.cwd);
}

if (!env.modulePath) {
console.log('Local hacker not found in:', env.cwd);
process.exit(1);
}

if (env.configPath) {
require(env.configPath);
} else {
Expand Down

0 comments on commit 664ebd1

Please # to comment.