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

Commit

Permalink
Use bash in a more portable way
Browse files Browse the repository at this point in the history
  • Loading branch information
loverdos committed Jun 2, 2019
1 parent f8ccd3a commit 4195d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ 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 /bin/bash", o.sshFlags, host)
sshCmdStr := fmt.Sprintf("ssh %v %v '/usr/bin/env bash'", o.sshFlags, host)

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

0 comments on commit 4195d99

Please sign in to comment.