diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 14:46:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 14:46:20 -0600 |
| commit | cbafaa3c662203f9e0c42a0dcffc0057a297d1fb (patch) | |
| tree | 966ff3883ba48647f662af4904b1c8e790312b69 /unix.go | |
| parent | 209074a2448b17dfbd6d92057e4410bc4309830d (diff) | |
testing
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1,14 +1,12 @@ package main import ( - "os" + "errors" "os/exec" - "time" "strings" - "errors" - "go.wit.com/log" "go.wit.com/lib/gui/repostatus" + "go.wit.com/log" ) var repopath string = "/home/jcarr/" @@ -93,11 +91,12 @@ func runCommandsOld() bool { */ func RunCmdNew(workingpath string, parts []string) (error, bool, string) { - time.Sleep(10 * time.Second) + log.Warn("RUN NEW:", workingpath, parts) return RunCmd(workingpath, parts) } func RunCmd(workingpath string, parts []string) (error, bool, string) { + log.Warn("RUN CMD:", workingpath, parts) if len(parts) == 0 { log.Warn("command line was empty") return errors.New("empty"), false, "" @@ -110,9 +109,6 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) { parts = parts[1:] log.Warn("working path =", workingpath, "thing =", thing, "cmdline =", parts) - if thing == "pwd" { - os.Exit(-1) - } // Create the command cmd := exec.Command(thing, parts...) |
