mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
nuget-package-hook: use sub-shell to set nullglob
This commit is contained in:
parent
bfa7bef5ec
commit
6097d6e202
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user