diff options
| author | Jeff Carr <[email protected]> | 2024-12-10 01:47:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-10 01:47:13 -0600 |
| commit | 8ba815f12e47c182b8407a79cdf9f8a6b8cf1a64 (patch) | |
| tree | 202dced6cc825f9f9c7efa907307106cff0b97f3 | |
| parent | 2b21ee65d7ad92d89fbe457e85756ee996dc4c61 (diff) | |
testing automation
| -rw-r--r-- | main.go | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -89,7 +89,9 @@ func main() { if argv.Build { if err := forge.Build(argvRepo, nil); err == nil { okExit("build worked") + argvRepo.RunEcho([]string{"ls", "-l"}) } else { + argvRepo.RunEcho([]string{"ls", "-l"}) badExit(err) } } @@ -214,7 +216,19 @@ func build() error { } } if argv.Build { - return forge.Build(argvRepo, nil) + err := forge.Build(argvRepo, nil) + pwd, _ := os.Getwd() + if err == nil { + log.Info("this totally worked", pwd) + shell.RunEcho([]string{"ls", "-l"}) + log.Info("ran ls") + } else { + log.Info("this totally did not work", pwd) + shell.RunEcho([]string{"ls", "-l"}) + log.Info("ran ls") + } + return err + } log.Info("skipping build") return nil |
