mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
Fix missing path test in powershell release tool
This commit is contained in:
parent
bc55974ff3
commit
86ba58da06
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user