diff --git a/packages/cli/src/cli/overview/action.create.overview.ts b/packages/cli/src/cli/overview/action.create.overview.ts index 0a247e15c..fa5258faf 100644 --- a/packages/cli/src/cli/overview/action.create.overview.ts +++ b/packages/cli/src/cli/overview/action.create.overview.ts @@ -147,9 +147,10 @@ export class CommandCreateOverview extends CommandLineAction { const tarBuilder = new TarBuilder(tarFilePath); tiles.sort((a, b) => a.localeCompare(b)); - for (const file of tiles) await tarBuilder.write(file.slice(targetPath.length), await fsa.read(file)); + for (const file of tiles) await tarBuilder.write(file.slice(targetPath.length + 1), await fsa.read(file)); await tarBuilder.close(); + logger.info(tarBuilder.stats, 'CreateOver:TarCreated'); // Creating tar index const fd = await fs.open(tarFilePath, 'r');