Skip to content

Commit

Permalink
Print output for download cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Md. Ishtiaq Islam <[email protected]>
  • Loading branch information
ishtiaqhimel committed Aug 20, 2024
1 parent cf29420 commit 6ef37d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/add_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func manageKeyViaDocker(opt *keyOptions, args []string) error {

out, err := exec.Command("docker", keyArgs...).CombinedOutput()
if err != nil {
klog.Infoln("Output:", string(out))
return err
}
klog.Infoln(fmt.Sprintf("\n%s", string(out)))
Expand Down
2 changes: 1 addition & 1 deletion pkg/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ func runRestoreViaDocker(localDirs cliLocalDirectories, extraArgs []string, snap
args := append(restoreArgs, snapshot, "--target", filepath.Join(DestinationDir, snapshot))
klog.Infoln("Running docker with args:", args)
out, err := exec.Command("docker", args...).CombinedOutput()
klog.Infoln("Output:", string(out))
if err != nil {
return err
}
klog.Infoln("Output:", string(out))
}
return nil
}
Expand Down

0 comments on commit 6ef37d3

Please sign in to comment.