Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
LDVG committed Feb 29, 2024
1 parent f0d9fea commit dd4f424
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions windows/cygwin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if (-Not (Test-Path $GPG)) {
Write-Host "Config: $Config"
Write-Host "GPG: $GPG"

$GpgConf = New-TemporaryFile

# Create work directories.
New-Item -Type Directory "${Cygwin}" -Force
New-Item -Type Directory "${Root}" -Force
Expand All @@ -48,8 +50,8 @@ try {
Invoke-WebRequest ${URL}/${Setup}.sig `
-OutFile ${Cygwin}\${Setup}.sig
}
& $GPG --debug-all --list-keys
& $GPG --debug-all --quiet --no-default-keyring `
& $GPG --options $GpgConf --debug-all --list-keys
& $GPG --options $GpgConf --debug-all --quiet --no-default-keyring `
--keyring ${PSScriptRoot}/cygwin.gpg `
--verify ${Cygwin}\${Setup}.sig ${Cygwin}\${Setup}
if ($LastExitCode -ne 0) {
Expand Down

0 comments on commit dd4f424

Please sign in to comment.