Skip to content

Commit

Permalink
fix: #253
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Sep 20, 2023
1 parent b4e3e20 commit 2ebb6f4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions core/lib/cc/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,20 @@ func setCurrentTarget(cmd string) {
}

// open a shell
CliPrintInfo("Opening Shell window")
shell := "elvsh"
if os.Getenv("LD") == "true" {
shell = "bash"
}
err = SSHClient(shell, "", RuntimeConfig.SSHDPort, true)
if err != nil {
CliPrintError("SSHClient: %v", err)
if a.GOOS == "windows" {
CliPrintInfo("Please use `interactive_shell` module to open an shell")
} else {
if os.Getenv("LD") == "true" {
shell = "bash"
}
CliPrintInfo("Opening '%s' shell pane", shell)
err = SSHClient(shell, "", RuntimeConfig.SSHDPort, true)
if err != nil {
CliPrintError("SSHClient: %v", err)
}
}
CliPrintInfo("Opening SFTP window")
CliPrintInfo("Opening SFTP pane")
err = SSHClient("sftp", "", RuntimeConfig.SSHDPort, true)
if err != nil {
CliPrintError("SFTPClient: %v", err)
Expand Down

0 comments on commit 2ebb6f4

Please sign in to comment.