Skip to content

Commit

Permalink
Fix #177, Tools download fails to detect archive extension
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Nov 1, 2024
1 parent e90fc5a commit f5883d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/download.mts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function downloadAndInstallArchive(
extraHeaders?: { [key: string]: string },
progressCallback?: (progress: Progress) => void
): Promise<boolean> {
// Check if the SDK is already installed
// Check if already installed
if (
existsSync(targetDirectory) &&
readdirSync(targetDirectory).length !== 0
Expand All @@ -218,7 +218,7 @@ export async function downloadAndInstallArchive(
// Ensure the target directory exists
await mkdir(targetDirectory, { recursive: true });

const archiveExtension = getArchiveExtension(url);
const archiveExtension = getArchiveExtension(archiveFileName);
if (!archiveExtension) {
Logger.error(
LoggerSource.downloader,
Expand Down

0 comments on commit f5883d0

Please sign in to comment.