Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-15 18:08:24 -04:00
parent 8eccc0f7a9
commit 207bc1b82c
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -109,9 +109,8 @@ func run(args ...string) (string, error) {
// always add trust insecure, and the registry
newargs := []string{args[0], "-d", "-k"}
if len(args) > 1 {
newargs = append(newargs, args[1:])
newargs = append(newargs, args[1:]...)
}
fmt.Printf("args: %#v\n", newargs)
cmd := exec.Command(prog, newargs...)
out, err := cmd.CombinedOutput()
return string(out), err