Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit 4195d99

Browse files
committed
Use bash in a more portable way
1 parent f8ccd3a commit 4195d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshcode.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func sshCode(host, dir string, o options) error {
5656
dlScript := downloadScript(codeServerPath)
5757

5858
// Downloads the latest code-server and allows it to be executed.
59-
sshCmdStr := fmt.Sprintf("ssh %v %v /bin/bash", o.sshFlags, host)
59+
sshCmdStr := fmt.Sprintf("ssh %v %v '/usr/bin/env bash'", o.sshFlags, host)
6060

6161
sshCmd := exec.Command("sh", "-c", sshCmdStr)
6262
sshCmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)