Skip to content

Commit

Permalink
Update itt.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Feb 18, 2025
1 parent 55aac78 commit d374cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7145,8 +7145,8 @@ $File = [System.IO.Path]::GetFileName($url)
$DownloadPath = Join-Path -Path $Destination_Directory -ChildPath $File
$targetPath = Join-Path -Path $Destination_Directory -ChildPath $launcher
try {
Add-Log -Message "Downloading $name using Invoke-WebRequest" -Level "INFO"
Invoke-WebRequest -Uri $url -OutFile $DownloadPath -ErrorAction Stop
Add-Log -Message "Downloading $name using Start-BitsTransfer" -Level "INFO"
Start-BitsTransfer -Source $url -Destination $DownloadPath -ErrorAction Stop
Expand-Archive -Path $DownloadPath -DestinationPath $Destination_Directory -Force -ErrorAction Stop
}
catch {
Expand Down

0 comments on commit d374cde

Please sign in to comment.