Skip to content

Commit f5682b8

Browse files
committed
[supervisor] pass env vars to ssh sessions
1 parent acdfb49 commit f5682b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/supervisor/BUILD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ packages:
4141
commands:
4242
- ["curl", "-OL", "https://matt.ucc.asn.au/dropbear/dropbear-2020.81.tar.bz2"]
4343
- ["tar", "xjf", "dropbear-2020.81.tar.bz2"]
44-
- ["sh", "-c", "cd dropbear-2020.81; ./configure --enable-static && make"]
44+
- ["sh", "-c", "cd dropbear-2020.81; ./configure --enable-static&& sed -i '/clearenv();/d' svr-chansession.c && make"]
4545
- ["mv", "dropbear-2020.81/dropbear", "dropbear"]
4646
- ["mv", "dropbear-2020.81/dropbearkey", "dropbearkey"]
4747
- ["rm", "-rf", "dropbear-2020.81*"]

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ func prepareIDELaunch(cfg *Config) *exec.Cmd {
599599
func buildChildProcEnv(cfg *Config) []string {
600600
envs := make(map[string]string)
601601
for _, e := range os.Environ() {
602-
segs := strings.Split(e, "=")
602+
segs := strings.SplitN(e, "=", 2)
603603
if len(segs) < 2 {
604604
log.Printf("\"%s\" has invalid format, not including in IDE environment", e)
605605
continue

0 commit comments

Comments
 (0)