Automatically remove the rcfile generated by docker -i from /tmp

This commit is contained in:
Louis Opter 2013-03-12 12:12:40 -07:00
parent df5134f46e
commit d895b3a7f8
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ func InteractiveMode(scripts ...string) error {
if err != nil {
return err
}
defer os.Remove(rcfile.Name())
io.WriteString(rcfile, "enable -n help\n")
os.Setenv("PATH", tmp+":"+os.Getenv("PATH"))
os.Setenv("PS1", "\\h docker> ")