Skip to content

Commit db4c75f

Browse files
author
Solomon Hykes
committed
Interactive mode preserves existing PATH, to facilitate scripting
1 parent e8d4864 commit db4c75f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func InteractiveMode(scripts ...string) error {
112112
return err
113113
}
114114
io.WriteString(rcfile, "enable -n help\n")
115-
os.Setenv("PATH", tmp)
115+
os.Setenv("PATH", tmp + ":" + os.Getenv("PATH"))
116116
os.Setenv("PS1", "\\h docker> ")
117117
shell := exec.Command("/bin/bash", append([]string{"--rcfile", rcfile.Name()}, scripts...)...)
118118
shell.Stdin = os.Stdin

0 commit comments

Comments
 (0)