about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2024-04-02 14:45:07 -0300
committerGitHub <noreply@github.com>2024-04-02 14:45:07 -0300
commit80c8b15bce780f1f948751705b7a1914964f99bd (patch)
treeb4014d053f9221ac380da1ead4001000e1282488 /pkgs
parentaa23ec0eda4479d42bc2eee0d9d8e74496652929 (diff)
parent858f4db3048c5be3527e183470e93c1a72c5727c (diff)
Merge pull request #295844 from eclairevoyant/fix-dotnet-executables
`buildDotnetModule`: fix handling `executables` with an empty list
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh
index 97dd15c17dcf7..e3671728af35e 100644
--- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh
+++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh
@@ -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"