summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-02 17:52:45 -0600
committerJeff Carr <[email protected]>2024-03-02 17:52:45 -0600
commit412c84fcd9f40350eeec767b7367d6d1fed0fabb (patch)
treec698fa27508b1bcca498e75330f503eec50b0bc3 /unix.go
parentb2d3d13ed9992aab812184009303e1a1be305194 (diff)
generate valid DebianVersions()v0.21.4
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix.go b/unix.go
index 12ed300..6c7faef 100644
--- a/unix.go
+++ b/unix.go
@@ -11,7 +11,6 @@ import (
"regexp"
"strconv"
"strings"
- "syscall"
"time"
"go.wit.com/lib/gui/shell"
@@ -183,6 +182,7 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) {
// panic("fucknuts")
return err, false, string(output)
+ /* todo: see if there is a way to get the exit value
// The command failed (non-zero exit status)
if exitErr, ok := err.(*exec.ExitError); ok {
// Assert that it is an exec.ExitError and get the exit code
@@ -192,6 +192,7 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) {
} else {
log.Warn("cmd.Run() failed with %s\n", err)
}
+ */
}
tmp := string(output)