Skip to content

Commit

Permalink
Update setup.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
xmt3061123 authored Jun 21, 2024
1 parent 8b00adc commit f438c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ function Download-And-Install {
Start-Process -FilePath $tempPath -ArgumentList $installArgs -Verb RunAs -Wait -ErrorAction Stop
}
catch {
Write-Error "Failed to download or install $fileName: $_"
Write-Error "Failed to download or install ${fileName}: $_"
}
finally {
if (Test-Path $tempPath) {
Remove-Item $tempPath -Force
Write-Output "$fileName has been removed from temp"
Write-Output "${fileName} has been removed from temp"
}
}
}
Expand Down

0 comments on commit f438c6e

Please sign in to comment.