diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 17:39:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 17:39:38 -0600 |
| commit | 13beecb0ea04b81c5065261b33371c82c4cab987 (patch) | |
| tree | 1170735b1405c3d4681e8bbc879979e7b892e30c /unix.go | |
| parent | 1928ac7e7c4553b309fc9760a49fef8f8e15b11a (diff) | |
autobuild test 11?
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -12,7 +12,7 @@ var repopath string = "/home/jcarr/" // if dryRun == true, then it just prints out the values // but doesn't do anything func goMake(dryRun string) bool { - var workingPath string = "go/src" + var workingpath string = "~/go/src" for _, line := range me.script { if len(line) == 0 { continue @@ -20,11 +20,11 @@ func goMake(dryRun string) bool { if line[0] == "cd" { switch len(line) { case 1: - log.Verbose("do cmdPwd() to go root", repopath+"go/src") - workingPath = "" + log.Verbose("do cmdPwd() TODO: change working path to ~ ?") + workingpath = "/home/jcarr/go/src/go.wit.com/" case 2: log.Verbose("do cmdPwd() here", line) - workingPath = line[1] + workingpath = line[1] default: log.Warn("bad cd", line) return false @@ -33,19 +33,18 @@ func goMake(dryRun string) bool { } cmd := line[0] s := strings.Join(line[1:], " ") - path := repopath + workingPath - log.Warn("NEED TO RUN path =", path, "cmd =", cmd, s) + log.Warn("NEED TO RUN path =", workingpath, "cmd =", cmd, s) if dryRun == "--dry-run" { continue } if dryRun == "--doit" { - log.Warn("Actually RUN path =", path, "cmd =", cmd, s) - err, b, output := repostatus.RunCmd(path, line) + log.Warn("Actually RUN path =", workingpath, "cmd =", cmd, s) + err, b, output := repostatus.RunCmd(workingpath, line) if err != nil { + log.Info("output =", output) log.Info("ABEND EXECUTION") log.Info("error =", err) log.Info("b =", b) - log.Info("output =", output) return false } // log.Warn("output was =", output) |
