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(
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 ,
You can’t perform that action at this time.
0 commit comments