diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-03-14 06:26:07 -0400 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-04-02 13:08:31 -0400 |
commit | 858f4db3048c5be3527e183470e93c1a72c5727c (patch) | |
tree | ce2d43c89063cfa9b48e8ec45bc76a3833db5ad8 /pkgs/build-support | |
parent | 8d5a3b099241f8fce1c66f0f1e1e11e30cf1a8cc (diff) |
buildDotnetModule: fix handling `executables` with an empty list
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-fixup-hook.sh | 3 |
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" |