Skip to content

Commit

Permalink
Fix for reading bin files (#385)
Browse files Browse the repository at this point in the history
The problem was that the extension was not being correctly matched for
`bin` files, leading the tool to try and parse them as lisp files.
  • Loading branch information
DavePearce authored Nov 25, 2024
1 parent e2d96a2 commit 5cb0c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func readSchema(filenames []string) *hir.Schema {
if len(filenames) == 0 {
fmt.Println("source or binary constraint(s) file required.")
os.Exit(5)
} else if len(filenames) == 1 && path.Ext(filenames[0]) == "bin" {
} else if len(filenames) == 1 && path.Ext(filenames[0]) == ".bin" {
// Single (binary) file supplied
return readBinaryFile(filenames[0])
}
Expand Down

0 comments on commit 5cb0c28

Please sign in to comment.