From 61d38545f23cfb300dbd1d39561ee1b7e413a170 Mon Sep 17 00:00:00 2001 From: ObsoleteXero <51947152+ObsoleteXero@users.noreply.github.com> Date: Mon, 13 Mar 2023 12:46:30 +0530 Subject: [PATCH] gpg|gnupg: Add gpg2 alias (#4551) --- bucket/gnupg.json | 1 + bucket/gpg.json | 1 + 2 files changed, 2 insertions(+) diff --git a/bucket/gnupg.json b/bucket/gnupg.json index 7d17c85954..646a76a186 100644 --- a/bucket/gnupg.json +++ b/bucket/gnupg.json @@ -10,6 +10,7 @@ "script": [ "Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse", "New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null", + "Copy-Item \"$dir\\bin\\gpg.exe\" \"$dir\\bin\\gpg2.exe\"", "if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {", " Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"", " New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null", diff --git a/bucket/gpg.json b/bucket/gpg.json index 6911f5ba86..4860b0bcc0 100644 --- a/bucket/gpg.json +++ b/bucket/gpg.json @@ -10,6 +10,7 @@ "script": [ "Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse", "New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null", + "Copy-Item \"$dir\\bin\\gpg.exe\" \"$dir\\bin\\gpg2.exe\"", "if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {", " Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"", " New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null",