Skip to content

Commit d58b2bb

Browse files
authored
Merge pull request #8 from walkersumida/feature/fix-isterminal-arg
fix: IsTerminal arg
2 parents 41a4b93 + c2cd4c3 commit d58b2bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

credential/credential.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"fmt"
77
"os"
8-
"syscall"
98
"time"
109

1110
"github.com/walkersumida/aws-sso-google/path"
@@ -177,7 +176,7 @@ func (c *Credential) Output() (string, error) {
177176

178177
// Println prints a message to stdout if it is a terminal, otherwise it prints the credentials.
179178
func Println(credentials string) {
180-
if term.IsTerminal(syscall.Stdout) {
179+
if term.IsTerminal(int(os.Stdout.Fd())) {
181180
fmt.Println("Login successful")
182181
} else {
183182
fmt.Println(credentials)

0 commit comments

Comments
 (0)