last and sort should pipe to stdout
This commit is contained in:
parent
59b0c173aa
commit
b5075786c6
3 changed files with 6 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package next
|
|||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os/exec"
|
||||
"regexp"
|
||||
|
|
@ -45,5 +46,6 @@ func Last() {
|
|||
if err != nil {
|
||||
log.Fatalf("um last: %v", err)
|
||||
}
|
||||
log.Println(s)
|
||||
// send to stdout, not stderr as is default for log.Print:
|
||||
fmt.Println(s)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue