Skip to content

Commit 04f9d80

Browse files
committed
Fix shellcheck runner
1 parent abcb0d9 commit 04f9d80

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/shellcheck/index.test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ it('ShellCheck', async () => {
1818
return
1919
}
2020

21-
cmd({
22-
defaultExecutable: shellcheck,
23-
argvSuffix: await listShellFiles(),
24-
})
21+
const shellFiles = await listShellFiles()
22+
23+
if (shellFiles.length) {
24+
cmd({
25+
defaultExecutable: shellcheck,
26+
argvSuffix: shellFiles,
27+
})
28+
}
2529
})

0 commit comments

Comments
 (0)