mirror of
https://github.com/containers/skopeo.git
synced 2025-09-05 08:41:00 +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
|
return err
|
||||||
}
|
}
|
||||||
if c.Bool("raw") {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
imgInspect, err := img.Inspect()
|
imgInspect, err := img.Inspect()
|
||||||
|
Reference in New Issue
Block a user