Skip to content

Commit 8e85df9

Browse files
committed
wip
Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>
1 parent 2dd000f commit 8e85df9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/download-tools.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,8 @@ async function downloadGDB(target: VsceTarget, dest: string, options?: ToolOptio
276276
throw new Error(`Failed to extract ${url}`, { cause: error });
277277
});
278278
} else {
279-
mkdirSync(destPath, { recursive: true });
280279
console.debug(`fastExtract: downld ${downloadFilePath}, dest ${destPath} ...`);
281-
await fastExtract(downloadFilePath, `${downloadPath}/gdb`, { type: 'tar.xz' },
282-
283-
).catch(error => {
280+
await fastExtract(downloadFilePath, destPath, { strip: 1, type: fileType?.ext }).catch(error => {
284281
throw new Error(`Failed to extract ${downloadFilePath}`, { cause: error });
285282
});
286283
}

0 commit comments

Comments
 (0)