diff options
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -13,17 +13,13 @@ import ( "go.wit.com/log" ) -func fullpath(repo string) string { - return "/home/jcarr/go/src/" + repo -} - func run(path string, thing string, cmdline string) string { parts := strings.Split(cmdline, " ") // Create the command cmd := exec.Command(thing, parts...) // Set the working directory - cmd.Dir = fullpath(path) + cmd.Dir = path // Execute the command output, err := cmd.CombinedOutput() @@ -120,8 +116,7 @@ func splitVersion(version string) (a, b, c string) { // temp hack. fix this func runCmd(path string, parts []string) (error, bool, string) { - fulldir := fullpath(path) - return RunCmd(fulldir, parts) + return RunCmd(path, parts) } func RunCmd(workingpath string, parts []string) (error, bool, string) { |
