Basic code touchup

This commit is contained in:
Cryostrixx 2024-09-26 00:31:35 -07:00
parent 004a70fda8
commit 297ec6a4b5
No known key found for this signature in database
GPG Key ID: 2FC11420AFB82801

View File

@ -62,9 +62,7 @@ $downloadURL = "https://github.com/ChrisTitusTech/winutil/releases/latest/downlo
# Download the WinUtil script to '$env:TEMP'
try {
Write-Host "Downloading latest stable WinUtil version..." -ForegroundColor Green
$ProgressPreference = "SilentlyContinue"
Invoke-RestMethod $downloadURL -OutFile "$env:TEMP\winutil.ps1"
$ProgressPreference = "Continue"
} catch {
Write-Host "Error downloading WinUtil: $_" -ForegroundColor Red
break
@ -86,7 +84,7 @@ try {
Write-Host "WinUtil is not running as administrator. Relaunching..." -ForegroundColor DarkCyan
Start-Process $processCmd -ArgumentList $launchArguments -Verb RunAs
} else {
Write-Host "Running the latest stable version of WinUtil." -ForegroundColor Green
Write-Host "Running the latest stable version of WinUtil." -ForegroundColor DarkCyan
Start-Process $processCmd -ArgumentList $launchArguments
}
break