Skip to content

Commit

Permalink
chore: add exit for ssh commands that exit (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon authored Jun 27, 2023
1 parent 6dd99a6 commit 06793c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"context"
"fmt"
"os"

"github.com/spf13/cobra"
"github.com/uselagoon/lagoon-cli/internal/lagoon"
Expand Down Expand Up @@ -108,6 +109,7 @@ var sshEnvCmd = &cobra.Command{
}
if err != nil {
output.RenderError(err.Error(), outputOptions)
os.Exit(1)
}
}
return nil
Expand Down

0 comments on commit 06793c8

Please sign in to comment.