Skip to content

Commit

Permalink
limactl shell: avoid silencing errors
Browse files Browse the repository at this point in the history
Fix issue 2980

Before:
```
$ limactl shell alpine
$ echo $?
255
```

After:
```
$ limactl shell alpine
[email protected]: Permission denied (publickey,keyboard-interactive).
$ echo $?
255
```

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Dec 25, 2024
1 parent 5fb9353 commit ab48fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/limactl/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
sshArgs = append(sshArgs, "-o", "SendEnv=COLORTERM")
}
sshArgs = append(sshArgs, []string{
"-q",
"-o", "LogLevel=ERROR",
"-p", strconv.Itoa(inst.SSHLocalPort),
inst.SSHAddress,
"--",
Expand Down

0 comments on commit ab48fb7

Please sign in to comment.