Преглед изворни кода

Interactive mode preserves existing PATH, to facilitate scripting

Solomon Hykes пре 12 година
родитељ
комит
db4c75f3c1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/client.go

+ 1 - 1
client/client.go

@@ -112,7 +112,7 @@ func InteractiveMode(scripts ...string) error {
 		return err
 	}
 	io.WriteString(rcfile, "enable -n help\n")
-	os.Setenv("PATH", tmp)
+	os.Setenv("PATH", tmp + ":" + os.Getenv("PATH"))
 	os.Setenv("PS1", "\\h docker> ")
 	shell := exec.Command("/bin/bash", append([]string{"--rcfile", rcfile.Name()}, scripts...)...)
 	shell.Stdin = os.Stdin