mirror of
https://github.com/genuinetools/reg.git
synced 2024-05-20 12:08:33 -04:00
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
8eccc0f7a9
commit
207bc1b82c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue