Skip to content

Commit ce1e193

Browse files
author
Quentin Perez
committed
use == instead of != top.go
1 parent e153bc9 commit ce1e193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/top.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func RunTop(ctx CommandContext, args TopArgs) error {
4545
sshCommand := utils.NewSSHExecCmd(server.PublicAddress.IP, server.PrivateIP, true, []string{command}, gateway)
4646
logrus.Debugf("Executing: %s", sshCommand)
4747
out, err := exec.Command("ssh", sshCommand.Slice()[1:]...).CombinedOutput()
48-
if err != nil {
48+
if err == nil {
4949
fmt.Fprintf(ctx.Stdout, "%s", out)
5050
}
5151
return err

0 commit comments

Comments
 (0)