Fix missing path test in powershell release tool

This commit is contained in:
Jonathan White 2022-02-06 09:33:11 -05:00
parent bc55974ff3
commit 86ba58da06
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -231,7 +231,9 @@ function Invoke-GpgSignFiles([string[]] $files, [string] $key) {
foreach ($_ in $files) { foreach ($_ in $files) {
Write-Host "Signing file '$_' and creating DIGEST..." Write-Host "Signing file '$_' and creating DIGEST..."
Remove-Item "$_.sig" if (Test-Path "$_.sig") {
Remove-Item "$_.sig"
}
Invoke-Cmd "gpg" "--output `"$_.sig`" --armor --local-user `"$key`" --detach-sig `"$_`"" Invoke-Cmd "gpg" "--output `"$_.sig`" --armor --local-user `"$key`" --detach-sig `"$_`""
$FileName = (Get-Item $_).Name $FileName = (Get-Item $_).Name
(Get-FileHash "$_" SHA256).Hash + " *$FileName" | Out-File "$_.DIGEST" -NoNewline (Get-FileHash "$_" SHA256).Hash + " *$FileName" | Out-File "$_.DIGEST" -NoNewline