Update winutil.ps1 (#1295)

This commit is contained in:
Chris Titus 2023-12-19 14:47:56 -06:00 committed by GitHub
parent 541dfaba5c
commit 3bb48564ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,8 +183,7 @@ function Get-Oscdimg {
$oscdimgPath = "$env:TEMP\oscdimg.exe"
)
$githubUserName = "ChrisTitusTech"
$downloadUrl = "https://github.com/$githubUserName/winutil/releases/oscdimg.exe"
$downloadUrl = "https://github.com/ChrisTitusTech/winutil/raw/main/releases/oscdimg.exe"
Invoke-RestMethod -Uri $downloadUrl -OutFile $oscdimgPath
$hashResult = Get-FileHash -Path $oscdimgPath -Algorithm SHA256
$sha256Hash = $hashResult.Hash