diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 15:13:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 15:13:42 -0600 |
| commit | 940b1d8b6e8389e39aac0b0173d313d30da5c01b (patch) | |
| tree | 9954c7006a5a5617500674c5e9157246e8cfbdcb | |
| parent | 1d2dacab264e798e5d09325939b5760d18995b6a (diff) | |
old code, new gadgetsv0.12.13
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | go.sum | 4 | ||||
| -rw-r--r-- | unix.go | 8 |
3 files changed, 3 insertions, 11 deletions
@@ -4,7 +4,7 @@ go 1.21.4 require ( go.wit.com/gui v0.12.16 - go.wit.com/lib/gadgets v0.12.8 + go.wit.com/lib/gadgets v0.12.9 go.wit.com/log v0.5.5 go.wit.com/widget v1.1.5 ) @@ -6,8 +6,8 @@ go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNe go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA= go.wit.com/gui v0.12.16 h1:GBiPiDyzkGCxwNegehHiONmNppaqyFZv7iteLUHJ/Po= go.wit.com/gui v0.12.16/go.mod h1:27+THr2a84GZ61KKUuN30WYnYoSsBewllUKc+fnWLto= -go.wit.com/lib/gadgets v0.12.8 h1:Y5YSOdoB3dD70j/cXrQPQay4P13TYMn2IIU8BZ8DHHg= -go.wit.com/lib/gadgets v0.12.8/go.mod h1:jDAyYalsa8cHElAl83T34qm5n8yEy+JaWSlFQoX8d7c= +go.wit.com/lib/gadgets v0.12.9 h1:yayXQDiAENfMElRMeh7Yab1f6HNkiy5Aw6KNP5Wd1DI= +go.wit.com/lib/gadgets v0.12.9/go.mod h1:Hb/vSiW22hPJjTVA1mShQ6HuqQ7dHGB95WLEfZlPO3M= go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4= go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo= go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30= @@ -124,11 +124,6 @@ func runCmd(path string, parts []string) (error, bool, string) { return RunCmd(fulldir, parts) } -func RunCmdNew(workingpath string, parts []string) (error, bool, string) { - time.Sleep(10 * time.Second) - return RunCmd(workingpath, parts) -} - func RunCmd(workingpath string, parts []string) (error, bool, string) { if len(parts) == 0 { log.Warn("command line was empty") @@ -142,9 +137,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...) |
