summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 15:13:42 -0600
committerJeff Carr <[email protected]>2024-01-18 15:13:42 -0600
commit940b1d8b6e8389e39aac0b0173d313d30da5c01b (patch)
tree9954c7006a5a5617500674c5e9157246e8cfbdcb /unix.go
parent1d2dacab264e798e5d09325939b5760d18995b6a (diff)
old code, new gadgetsv0.12.13
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/unix.go b/unix.go
index 08cfb00..b2f12a4 100644
--- a/unix.go
+++ b/unix.go
@@ -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...)