Fix inkpot-cli convert <filename>
This commit is contained in:
parent
7d35337708
commit
4d22da5312
1 changed files with 1 additions and 2 deletions
|
|
@ -35,11 +35,10 @@ Pass "-" as the filename to read from stdin.`,
|
||||||
if args[0] == "-" {
|
if args[0] == "-" {
|
||||||
input = os.Stdin
|
input = os.Stdin
|
||||||
} else {
|
} else {
|
||||||
input, err := os.Open(args[0])
|
input, err = os.Open(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error opening file: %v", err)
|
log.Fatalf("Error opening file: %v", err)
|
||||||
}
|
}
|
||||||
defer input.Close()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// write to given outfile, default to stdout
|
// write to given outfile, default to stdout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue