Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 8146dc9

Browse files
committed
update predicate
1 parent 950f94c commit 8146dc9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ function searchForFile(filename) {
109109
return __awaiter(this, void 0, void 0, function* () {
110110
const { stdout } = yield (0, execa_1.default)('find', [
111111
'.',
112-
`-name ${filename}`
112+
'-name',
113+
`'${filename}'`
113114
]);
114115
const dirs = stdout
115116
.split('\n')

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const detector = {
1818
async function searchForFile (filename:string) {
1919
const { stdout } = await execa('find', [
2020
'.',
21-
`-name ${filename}`
21+
'-name',
22+
`'${filename}'`
2223
])
2324

2425
const dirs = stdout

0 commit comments

Comments
 (0)