From 2fdc352d4f9abe0ac6c6a0e71e4e01de52d8a14b Mon Sep 17 00:00:00 2001 From: David Dollar Date: Fri, 13 Sep 2013 17:23:25 -0400 Subject: [PATCH] cleanup --- darwin.go | 2 +- process.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/darwin.go b/darwin.go index 3988c49..4a653c2 100644 --- a/darwin.go +++ b/darwin.go @@ -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() diff --git a/process.go b/process.go index b3ba343..4ccac4a 100644 --- a/process.go +++ b/process.go @@ -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 {