Refactor to add oci and util packages

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>

Change the sandbox directory path

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-07-29 15:35:10 -07:00
parent 839463d837
commit ac1340488d
7 changed files with 101 additions and 76 deletions

View file

@ -9,6 +9,7 @@ import (
"runtime"
"strings"
"github.com/mrunalp/ocid/utils"
"github.com/opencontainers/ocitools/generate"
)
@ -23,7 +24,7 @@ func getGPRCVersion() (string, error) {
grepCmd := fmt.Sprintf(`grep -r "\"google.golang.org/grpc\"" %s -A 1 | grep "\"Rev\"" | cut -d: -f2 | tr -d ' "\n'`, p)
out, err := execCmd("bash", "-c", grepCmd)
out, err := utils.ExecCmd("bash", "-c", grepCmd)
if err != nil {
return "", err
}