This commit is contained in:
David Dollar
2013-09-13 17:23:25 -04:00
parent 2d3d829023
commit 2fdc352d4f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
)
func (p *Process) Start() {
command := []string{"/bin/bash", p.bashArgument(), fmt.Sprintf("source \"%s\" 2>/dev/null; %s", filepath.Join(p.Root, ".profile"), p.Command)}
command := []string{"/bin/bash", p.shellArgument(), fmt.Sprintf("source \"%s\" 2>/dev/null; %s", filepath.Join(p.Root, ".profile"), p.Command)}
p.cmd = exec.Command(command[0], command[1:]...)
p.cmd.Dir = p.Root
p.cmd.Env = p.envAsArray()
+1 -1
View File
@@ -35,7 +35,7 @@ func (p *Process) Wait() {
p.cmd.Wait()
}
func (p *Process) bashArgument() string {
func (p *Process) shellArgument() string {
if p.Interactive {
return "-ic"
} else {