summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/unix.go b/unix.go
index def2c99..c4b4828 100644
--- a/unix.go
+++ b/unix.go
@@ -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) {