OSDN Git Service

Thanos did someting
[bytom/vapor.git] / vendor / github.com / tendermint / tmlibs / process / util.go
diff --git a/vendor/github.com/tendermint/tmlibs/process/util.go b/vendor/github.com/tendermint/tmlibs/process/util.go
deleted file mode 100644 (file)
index 24cf352..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-package process
-
-import (
-       . "github.com/tendermint/tmlibs/common"
-)
-
-// Runs a command and gets the result.
-func Run(dir string, command string, args []string) (string, bool, error) {
-       outFile := NewBufferCloser(nil)
-       proc, err := StartProcess("", dir, command, args, nil, outFile)
-       if err != nil {
-               return "", false, err
-       }
-
-       <-proc.WaitCh
-
-       if proc.ExitState.Success() {
-               return outFile.String(), true, nil
-       } else {
-               return outFile.String(), false, nil
-       }
-}