refactor: do not exit on script finish
This commit is contained in:
@@ -254,7 +254,7 @@ Write-Step "Checking Prerequisites"
|
|||||||
|
|
||||||
if (-not (Test-WingetAvailable)) {
|
if (-not (Test-WingetAvailable)) {
|
||||||
Write-Host "`nInstallation cannot continue without winget." -ForegroundColor Red
|
Write-Host "`nInstallation cannot continue without winget." -ForegroundColor Red
|
||||||
exit 1
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Success "winget is available"
|
Write-Success "winget is available"
|
||||||
@@ -630,9 +630,4 @@ else {
|
|||||||
Write-Host ""
|
Write-Host ""
|
||||||
}
|
}
|
||||||
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user