mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Add message letting the user known WinUtil is not found to Get-LatestWinUtil
This commit is contained in:
parent
73aa021957
commit
e29ce43147
@ -82,6 +82,7 @@ $WinUtilScriptPath = Join-Path "$env:TEMP" "winutil.ps1"
|
||||
# Function to download the latest release of WinUtil from the releases page to the local disk.
|
||||
function Get-LatestWinUtil {
|
||||
if (!(Test-Path $WinUtilScriptPath)) {
|
||||
Write-Host "WinUtil is not found. Downloading WinUtil '$($WinUtilReleaseTag)'..." -ForegroundColor DarkYellow
|
||||
Invoke-RestMethod $WinUtilReleaseURL -OutFile $WinUtilScriptPath
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user