File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export async function downloadAndInstallArchive(
205
205
extraHeaders ?: { [ key : string ] : string } ,
206
206
progressCallback ?: ( progress : Progress ) => void
207
207
) : Promise < boolean > {
208
- // Check if the SDK is already installed
208
+ // Check if already installed
209
209
if (
210
210
existsSync ( targetDirectory ) &&
211
211
readdirSync ( targetDirectory ) . length !== 0
@@ -218,7 +218,7 @@ export async function downloadAndInstallArchive(
218
218
// Ensure the target directory exists
219
219
await mkdir ( targetDirectory , { recursive : true } ) ;
220
220
221
- const archiveExtension = getArchiveExtension ( url ) ;
221
+ const archiveExtension = getArchiveExtension ( archiveFileName ) ;
222
222
if ( ! archiveExtension ) {
223
223
Logger . error (
224
224
LoggerSource . downloader ,
You can’t perform that action at this time.
0 commit comments