8000 Update: Kill the process if local hacker isn't found · gulpjs/hacker@664ebd1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 664ebd1

Browse files
Tyler Kellenphated
Tyler Kellen
authored andcommitted
Update: Kill the process if local hacker isn't found
1 parent dc80404 commit 664ebd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/hacker.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ function invoke (env) {
4949
console.log('Working directory changed to', env.cwd);
5050
}
5151

52+
if (!env.modulePath) {
53+
console.log('Local hacker not found in:', env.cwd);
54+
process.exit(1);
55+
}
56+
5257
if (env.configPath) {
5358
require(env.configPath);
5459
} else {

0 commit comments

Comments
 (0)
0