dotnet: fix leaking gpg-agent in update script

This commit is contained in:
David McFarland
2024-10-14 18:47:31 -03:00
parent e81b7d4f57
commit 7ec29fe50a
+6 -3
View File
@@ -114,9 +114,12 @@ writeScript "update-dotnet-vmr.sh" ''
curl -fssL "$sigUrl" -o release.sig
export GNUPGHOME=$PWD/.gnupg
gpg --batch --import ${releaseKey}
gpg --batch --verify release.sig "$tarball"
(
export GNUPGHOME=$PWD/.gnupg
trap 'gpgconf --kill all' EXIT
gpg --batch --import ${releaseKey}
gpg --batch --verify release.sig "$tarball"
)
tar --strip-components=1 --no-wildcards-match-slash --wildcards -xzf "$tarball" \*/eng/Versions.props \*/global.json
artifactsVersion=$(xq -r '.Project.PropertyGroup |