From ae16ae18f5f6faee70de642adf10ea2cf59efe40 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Tue, 21 Oct 2025 13:55:40 -0300 Subject: [PATCH] cygwin-dll-link: skip non-executable files --- pkgs/os-specific/cygwin/cygwin-dll-link-hook/cygwin-dll-link.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/cygwin/cygwin-dll-link-hook/cygwin-dll-link.sh b/pkgs/os-specific/cygwin/cygwin-dll-link-hook/cygwin-dll-link.sh index 2d2023d49a71..49cbde49174c 100644 --- a/pkgs/os-specific/cygwin/cygwin-dll-link-hook/cygwin-dll-link.sh +++ b/pkgs/os-specific/cygwin/cygwin-dll-link-hook/cygwin-dll-link.sh @@ -25,6 +25,7 @@ _dllDeps() { _linkDeps() { local target="$1" dir="$2" check="$3" + [[ ! -x "$target" ]] && echo "_linkDeps: $target is not executable, skipping." 1>&2 && return echo 'target:' "$target" local dll _dllDeps "$target" | while read -r dll; do