From dae15b593174ed82ac0f5f8c7250cb765a2b7f64 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 23 Jan 2024 15:20:54 -0600 Subject: Scan() everything functions Signed-off-by: Jeff Carr --- unix.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'unix.go') 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) { -- cgit v1.2.3