From 2563bd752cd19785ae8431914316cbad118c0aa9 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Thu, 5 Sep 2024 11:09:19 -0300 Subject: [PATCH] dotnet-sdk-setup-hook: make shell vars local --- pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh b/pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh index 5d657eaf3122..4af67889b28b 100644 --- a/pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh +++ b/pkgs/development/compilers/dotnet/dotnet-sdk-setup-hook.sh @@ -16,6 +16,7 @@ _linkPackages() { local -r src="$1" local -r dest="$2" local dir + local x for x in "$src"/*/*; do dir=$dest/$(basename "$(dirname "$x")") @@ -39,6 +40,8 @@ createNugetDirs() { } configureNuget() { + local x + for x in "${!_nugetInputs[@]}"; do if [[ -d $x/share/nuget/packages ]]; then addToSearchPathWithCustomDelimiter ";" NUGET_FALLBACK_PACKAGES "$x/share/nuget/packages"