Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek committed Sep 23, 2021
1 parent ba7f571 commit 68b7c15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"os"
"strings"

"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"

"github.com/buildpacks/pack/internal/sshdialer"
"golang.org/x/crypto/ssh"

dockerClient "github.com/docker/docker/client"
"github.com/heroku/color"
Expand Down Expand Up @@ -205,9 +205,9 @@ func initClient(logger logging.Logger, cfg config.Config) (pack.Client, error) {
// NOTE: this code is based on "github.com/containers/podman/v3/pkg/terminal"
func readSecret(prompt string) (pw []byte, err error) {
fd := int(os.Stdin.Fd())
if terminal.IsTerminal(fd) {
if term.IsTerminal(fd) {
fmt.Fprint(os.Stderr, prompt)
pw, err = terminal.ReadPassword(fd)
pw, err = term.ReadPassword(fd)
fmt.Fprintln(os.Stderr)
return
}
Expand Down

0 comments on commit 68b7c15

Please sign in to comment.