-
Notifications
You must be signed in to change notification settings - Fork 215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have Windows so I'm unable to test the code, but it looks OK other than this.
@@ -56,9 +56,10 @@ func sshCode(host, dir string, o options) error { | |||
dlScript := downloadScript(codeServerPath) | |||
|
|||
// Downloads the latest code-server and allows it to be executed. | |||
sshCmdStr := fmt.Sprintf("ssh %v %v '/usr/bin/env bash'", o.sshFlags, host) | |||
// sshCmdStr := fmt.Sprintf("ssh %v %v /bin/bash -l", o.sshFlags, host) | |||
sshCmdStr := fmt.Sprintf("ssh %v %v '/usr/bin/env bash -l'", o.sshFlags, host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The login shell stuff should be in a separate PR as it's unrelated to Git Bash for Windows support.
|
||
sshCmd := exec.Command("sh", "-c", sshCmdStr) | ||
sshCmd := exec.Command("sh", "-l", "-c", sshCmdStr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SSH is called from more places than just this, so if we're going to change sh
to a login shell so it reads the profile we should also do this every else.
Closing this one to submit two separate PR's. Thanks for comments. |
.profile