buildDotnetModule: fix handling executables with an empty list

This commit is contained in:
éclairevoyant 2024-03-14 06:26:07 -04:00
parent 8d5a3b0992
commit 858f4db304
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

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"