mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Interactive mode preserves existing PATH, to facilitate scripting
This commit is contained in:
parent
e8d48641de
commit
db4c75f3c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue