nuget-package-hook: use sub-shell to set nullglob

This commit is contained in:
David McFarland 2024-09-08 13:27:28 -03:00
parent bfa7bef5ec
commit 6097d6e202

View File

@ -41,6 +41,7 @@ fi
_createNugetSourceInOutput() { _createNugetSourceInOutput() {
local package version id dir nupkg content local package version id dir nupkg content
local -a nuspec local -a nuspec
(
shopt -s nullglob shopt -s nullglob
for package in "$prefix"/share/nuget/packages/*/*; do for package in "$prefix"/share/nuget/packages/*/*; do
@ -62,6 +63,7 @@ _createNugetSourceInOutput() {
@stripNondeterminism@/bin/strip-nondeterminism --type zip "$nupkg" @stripNondeterminism@/bin/strip-nondeterminism --type zip "$nupkg"
touch "$nupkg".sha512 touch "$nupkg".sha512
done done
)
} }
createNugetSource() { createNugetSource() {