Skip to content

Commit

Permalink
Merge pull request NixOS#295844 from eclairevoyant/fix-dotnet-executa…
Browse files Browse the repository at this point in the history
…bles

`buildDotnetModule`: fix handling `executables` with an empty list
  • Loading branch information
corngood authored Apr 2, 2024
2 parents aa23ec0 + 858f4db commit 80c8b15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 80c8b15

Please sign in to comment.