Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/instance/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,13 @@
if *inst.Config.Plain {
logrus.Infof("READY. Run `ssh -F %q %s` to open the shell.", inst.SSHConfigFile, inst.Hostname)
} else {
// Check if a shell session is already running
if _, err := os.Stat(filepath.Join(inst.Dir, "ssh.pid")); err == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you test this PR?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still testing, I'll revert back once fixed.

// Shell session exists, skip the READY message
_ = ShowMessage(inst)
err = nil

Check failure on line 320 in pkg/instance/start.go

View workflow job for this annotation

GitHub Actions / Lints

ineffectual assignment to err (ineffassign)
return true
}
logrus.Infof("READY. Run `%s` to open the shell.", LimactlShellCmd(inst.Name))
}
_ = ShowMessage(inst)
Expand Down
Loading