Skip to content

Commit

Permalink
fix fetching bug
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Jan 25, 2024
1 parent 031aa48 commit 64b3ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/root/manifest/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func fetchManifest(cmd *cobra.Command, opts *fetchOptions) (fetchErr error) {
}
}
}
if opts.outputPath != "" {
if opts.outputPath != "" && opts.outputPath != "-" {
if err = os.WriteFile(opts.outputPath, content, 0666); err != nil {
// save manifest content into the local file if the output path is provided
return err
Expand Down

0 comments on commit 64b3ddd

Please sign in to comment.