Skip to content

Commit

Permalink
(fix) skip file existence check for stdin
Browse files Browse the repository at this point in the history
fixes #233
  • Loading branch information
leonjza committed Sep 18, 2024
1 parent f43a121 commit d3fbac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/scan_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ flags.`)),
return errors.New("a source must be specified")
}

if !islazy.FileExists(fileCmdOptions.Source) {
if fileCmdOptions.Source != "-" && !islazy.FileExists(fileCmdOptions.Source) {
return errors.New("source is not readable")
}

Expand Down

0 comments on commit d3fbac4

Please sign in to comment.