Count vcpkg libs using null-delimited paths

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-25 04:02:44 +00:00
parent 036ffbbedd
commit 4d97f1d303

View File

@ -120,7 +120,7 @@ jobs:
for vcpkg_dir in ../vcpkg_installed ../../vcpkg_installed; do
if [ -d "$vcpkg_dir" ]; then
lib_count="$(find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print | wc -l)"
lib_count="$(find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | xargs -0 -n 1 echo | wc -l)"
if [ "$lib_count" -gt 0 ]; then
find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | \
while IFS= read -r -d '' lib; do