Skip to content

Commit f5883d0

Browse files
committed
Fix #177, Tools download fails to detect archive extension
Signed-off-by: paulober <[email protected]>
1 parent e90fc5a commit f5883d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/download.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export async function downloadAndInstallArchive(
205205
extraHeaders?: { [key: string]: string },
206206
progressCallback?: (progress: Progress) => void
207207
): Promise<boolean> {
208-
// Check if the SDK is already installed
208+
// Check if already installed
209209
if (
210210
existsSync(targetDirectory) &&
211211
readdirSync(targetDirectory).length !== 0
@@ -218,7 +218,7 @@ export async function downloadAndInstallArchive(
218218
// Ensure the target directory exists
219219
await mkdir(targetDirectory, { recursive: true });
220220

221-
const archiveExtension = getArchiveExtension(url);
221+
const archiveExtension = getArchiveExtension(archiveFileName);
222222
if (!archiveExtension) {
223223
Logger.error(
224224
LoggerSource.downloader,

0 commit comments

Comments
 (0)