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

`buildDotnetModule`: fix handling `executables` with an empty list
This commit is contained in:
David McFarland 2024-04-02 14:45:07 -03:00 committed by GitHub
commit 80c8b15bce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,8 @@ wrapDotnetProgram() {
dotnetFixupHook() {
echo "Executing dotnetFixupPhase"
if [ "${executables-}" ]; then
# check if executables is declared (including empty values, in which case we generate no executables)
if declare -p executables &>/dev/null; then
for executable in ${executables[@]}; do
path="${installPath-$out/lib/$pname}/$executable"