Skip to content

Commit

Permalink
fix output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Oct 29, 2024
1 parent 8847406 commit 87d1334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd-car-split.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func newCmd_SplitCar() *cli.Command {
return fmt.Errorf("failed to close file: %w", err)
}

err = carv2.ReplaceRootsInFile(cf.name, []cid.Cid{cf.payloadCid})
err = carv2.ReplaceRootsInFile(filepath.Join(outputDir, cf.name), []cid.Cid{cf.payloadCid})
if err != nil {
return fmt.Errorf("failed to replace root: %w", err)
}
Expand Down

0 comments on commit 87d1334

Please sign in to comment.