Update Get-Oscdimg.ps1

This commit is contained in:
Chris Titus 2023-12-19 14:21:23 -06:00
parent d6935f8ac0
commit 541dfaba5c

View File

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