Skip to content

Commit 6b48bb8

Browse files
authored
Print output for download cmd (#201)
Signed-off-by: Md. Ishtiaq Islam <[email protected]>
1 parent cf29420 commit 6b48bb8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/add_key.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func manageKeyViaDocker(opt *keyOptions, args []string) error {
250250

251251
out, err := exec.Command("docker", keyArgs...).CombinedOutput()
252252
if err != nil {
253+
klog.Infoln("Output:", string(out))
253254
return err
254255
}
255256
klog.Infoln(fmt.Sprintf("\n%s", string(out)))

pkg/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ func runRestoreViaDocker(localDirs cliLocalDirectories, extraArgs []string, snap
238238
args := append(restoreArgs, snapshot, "--target", filepath.Join(DestinationDir, snapshot))
239239
klog.Infoln("Running docker with args:", args)
240240
out, err := exec.Command("docker", args...).CombinedOutput()
241+
klog.Infoln("Output:", string(out))
241242
if err != nil {
242243
return err
243244
}
244-
klog.Infoln("Output:", string(out))
245245
}
246246
return nil
247247
}

0 commit comments

Comments
 (0)