Merge pull request #295844 from eclairevoyant/fix-dotnet-executables

`buildDotnetModule`: fix handling `executables` with an empty list

authored by David McFarland and committed by GitHub 80c8b15b aa23ec0e

+2 -1
+2 -1
pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh
··· 30 30 dotnetFixupHook() { 31 31 echo "Executing dotnetFixupPhase" 32 32 33 - if [ "${executables-}" ]; then 33 + # check if executables is declared (including empty values, in which case we generate no executables) 34 + if declare -p executables &>/dev/null; then 34 35 for executable in ${executables[@]}; do 35 36 path="${installPath-$out/lib/$pname}/$executable" 36 37