diff --git a/cli/cmd/set.go b/cli/cmd/set.go index 16b9ac64ac..6df964e175 100644 --- a/cli/cmd/set.go +++ b/cli/cmd/set.go @@ -139,10 +139,10 @@ func runSet(cmd *cobra.Command, args []string) error { fmt.Fprintln(cmd.OutOrStdout(), "✔️ Manifest set successfully") filelist := map[string][]byte{ - path.Join(flags.workspaceDir, coordRootPEMFilename): resp.CoordinatorRoot, - path.Join(flags.workspaceDir, meshRootPEMFilename): resp.MeshRoot, + coordRootPEMFilename: resp.CoordinatorRoot, + meshRootPEMFilename: resp.MeshRoot, } - if err := writeFilelist(".", filelist); err != nil { + if err := writeFilelist(flags.workspaceDir, filelist); err != nil { return fmt.Errorf("writing filelist: %w", err) }