mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 14:20:21 +00:00
Output the original raw manifest in (skopeo inspect --raw)
We need (skopeo inspect --raw > manifest.json) to save the unmodified original: no extra new lines, no undetected truncation, nothing.
This commit is contained in:
@@ -44,7 +44,10 @@ var inspectCmd = cli.Command{
|
||||
return err
|
||||
}
|
||||
if c.Bool("raw") {
|
||||
fmt.Fprintln(c.App.Writer, string(rawManifest))
|
||||
_, err := c.App.Writer.Write(rawManifest)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error writing manifest to standard output: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
imgInspect, err := img.Inspect()
|
||||
|
Reference in New Issue
Block a user