summaryrefslogtreecommitdiff
path: root/internal/io
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-31 17:23:34 +0200
committerPaul Buetow <paul@buetow.org>2021-10-31 17:23:34 +0200
commitfeff2c21715ab75fdc27ab2a5dcc4d795c45bc17 (patch)
tree8151f9d6666f558719a096368e1ab686d0fbfad1 /internal/io
parentb5ba67519a597758fa7b2ff3b40f75202717b581 (diff)
add dmap integration test with stdin input pipe
Diffstat (limited to 'internal/io')
-rw-r--r--internal/io/fs/readfile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/io/fs/readfile.go b/internal/io/fs/readfile.go
index 9c2f53c..18c20c0 100644
--- a/internal/io/fs/readfile.go
+++ b/internal/io/fs/readfile.go
@@ -99,7 +99,7 @@ func (f readFile) Start(ctx context.Context, ltx lcontext.LContext,
}
func (f readFile) makeReader() (*bufio.Reader, *os.File, error) {
- if f.filePath == "PIPE" && f.globID == "PIPE" {
+ if f.filePath == "" && f.globID == "-" {
return f.makePipeReader()
}
return f.makeFileReader()