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

Commit f39874b

Browse files
committed
add '/bin/sh -c' to start code-server cmd
1 parent 2693c3f commit f39874b

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
@@ -118,7 +118,7 @@ func sshCode(host, dir string, o options) error {
118118
flog.Info("Tunneling remote port %v to %v", o.remotePort, o.bindAddr)
119119

120120
sshCmdStr =
121-
fmt.Sprintf("ssh -tt -q -L %v:localhost:%v %v %v 'cd %v; %v --host 127.0.0.1 --allow-http --no-auth --port=%v'",
121+
fmt.Sprintf("ssh -tt -q -L %v:localhost:%v %v %v /bin/sh -c 'cd %v; %v --host 127.0.0.1 --allow-http --no-auth --port=%v'",
122122
o.bindAddr, o.remotePort, o.sshFlags, host, dir, codeServerPath, o.remotePort,
123123
)
124124

0 commit comments

Comments
 (0)