Skip to content

Commit

Permalink
cmds/core/readlink: pass stdout instead stdin
Browse files Browse the repository at this point in the history
Signed-off-by: Siarhiej Siemianczuk <[email protected]>
  • Loading branch information
binjip978 committed Sep 16, 2024
1 parent 98ed9b2 commit 27e5e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/core/readlink/readlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func run(stdout io.Writer, stderr io.Writer, args []string) error {

func main() {
flag.Parse()
if err := run(os.Stdin, os.Stderr, flag.Args()); err != nil {
if err := run(os.Stdout, os.Stderr, flag.Args()); err != nil {
os.Exit(1)
}
}

0 comments on commit 27e5e9b

Please sign in to comment.