From aeafa03ce307ba886adc5a8b85c14691a99dbfd6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 25 Jan 2026 03:50:01 +0000 Subject: [PATCH] Fix vcpkg lib count for packaging Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 824741a1e..2d7b495d1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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/*" -print0 | tr -cd '\0' | wc -c)" + lib_count="$(find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | awk 'BEGIN{RS=\"\\0\"} END{print NR}')" 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