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 dotnetFixupHook() { 31 echo "Executing dotnetFixupPhase" 32 33 - if [ "${executables-}" ]; then 34 for executable in ${executables[@]}; do 35 path="${installPath-$out/lib/$pname}/$executable" 36
··· 30 dotnetFixupHook() { 31 echo "Executing dotnetFixupPhase" 32 33 + # check if executables is declared (including empty values, in which case we generate no executables) 34 + if declare -p executables &>/dev/null; then 35 for executable in ${executables[@]}; do 36 path="${installPath-$out/lib/$pname}/$executable" 37