Skip to content

Commit

Permalink
fix: use exec instead of spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 2, 2021
1 parent 0ccf198 commit f7921ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paths-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default class PathsCache extends EventEmitter {
const cmd = "find"
const args = ["-L", directoryPath + "/", "-type", "f", "-not", "-regex", ignorePattern]

const stdout = await spawn(cmd, args)
const stdout = await exec(cmd, args)
const files = compact(stdout.toString().split("\n"))

this._filePathsByProjectDirectory.set(directoryPath, files)
Expand Down

0 comments on commit f7921ed

Please sign in to comment.