Skip to content

Commit 0fc6e12

Browse files
committed
fix file path mapping
1 parent 9143b39 commit 0fc6e12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

if-changed.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const result = child_process
1313
if (result) {
1414
console.log(result);
1515

16-
const dirs = result.split('\n').filter(file => file);
16+
const dirs = result
17+
.split('\n')
18+
.filter(file => file)
19+
.map(file => path.join(__dirname, file));
1720

1821
for (const dir of dirs) {
1922
if (dir.startsWith(currentPath)) {

0 commit comments

Comments
 (0)