Skip to content

Commit 71483c1

Browse files
authored
Merge pull request #15 from bonitao/master
Fix stdin input on Windows
2 parents 5509940 + 233eefa commit 71483c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/program.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function createProgram() {
3636
}
3737

3838
const { context: dockerContext, output } = cmd
39-
const absoluteDockerfilePath = file.startsWith("/")
39+
const absoluteDockerfilePath = path.isAbsolute(file)
4040
? file
4141
: path.join(dockerContext, file)
4242

0 commit comments

Comments
 (0)