diff options
| author | Jeff Carr <[email protected]> | 2024-01-23 15:20:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-23 15:20:54 -0600 |
| commit | dae15b593174ed82ac0f5f8c7250cb765a2b7f64 (patch) | |
| tree | 8a826a328b34035805bb48218d12bb82a6697966 /unix.go | |
| parent | 2f4cba36dddaf1b0cfeabb875527b03bdb75036b (diff) | |
Scan() everything functions
Signed-off-by: Jeff Carr <[email protected]>
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) { |
