summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-23 15:20:54 -0600
committerJeff Carr <[email protected]>2024-01-23 15:20:54 -0600
commitdae15b593174ed82ac0f5f8c7250cb765a2b7f64 (patch)
tree8a826a328b34035805bb48218d12bb82a6697966 /unix.go
parent2f4cba36dddaf1b0cfeabb875527b03bdb75036b (diff)
Scan() everything functions
Signed-off-by: Jeff Carr <[email protected]>
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) {