From 87d1334b08628470b8fe2a2ee9a8f3f918aeb7c9 Mon Sep 17 00:00:00 2001 From: anjor Date: Tue, 29 Oct 2024 08:25:17 +0000 Subject: [PATCH] fix output dir --- cmd-car-split.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-car-split.go b/cmd-car-split.go index 22fa0de8..96d6747d 100644 --- a/cmd-car-split.go +++ b/cmd-car-split.go @@ -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) }