bootstrap-haskell.ps1: don't exit if tmp file removal fails

This commit is contained in:
Rune K. Svendsen 2023-12-20 10:20:15 +01:00
parent e214695a3e
commit 3976daddb7
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) {
Print-Msg -msg 'Extracting Msys2 archive...'
$null = & "$archivePath" '-y' ('-o{0}' -f $GhcupDir) # Extract
Remove-Item -Path "$archivePath"
Remove-Item -Path "$archivePath" -ErrorAction Continue
Print-Msg -msg 'Processing MSYS2 bash for first time use...'
Exec "$Bash" '-lc' 'exit'