mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Explicitly require nak's bin executable
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
Path = require 'path'
|
||||
fsUtils = require 'fs-utils'
|
||||
_ = require 'underscore'
|
||||
$ = require 'jquery'
|
||||
@@ -275,7 +274,7 @@ class Project
|
||||
readPath(line) if state is 'readingPath'
|
||||
readLine(line) if state is 'readingLines'
|
||||
|
||||
command = Path.resolve(require.resolve('nak'), '../../bin/nak')
|
||||
command = require.resolve('.bin/nak')
|
||||
args = ['--hidden', '--ackmate', regex.source, @getPath()]
|
||||
ignoredNames = config.get('core.ignoredNames') ? []
|
||||
args.unshift('--ignore', ignoredNames.join(',')) if ignoredNames.length > 0
|
||||
|
||||
Reference in New Issue
Block a user