mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
Fix vcpkg lib count for packaging
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
@@ -120,7 +120,7 @@ jobs:
|
|||||||
|
|
||||||
for vcpkg_dir in ../vcpkg_installed ../../vcpkg_installed; do
|
for vcpkg_dir in ../vcpkg_installed ../../vcpkg_installed; do
|
||||||
if [ -d "$vcpkg_dir" ]; then
|
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
|
if [ "$lib_count" -gt 0 ]; then
|
||||||
find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | \
|
find "$vcpkg_dir" -type f \( -name "*.so" -o -name "*.so.[0-9]*" \) ! -path "*/debug/*" -print0 | \
|
||||||
while IFS= read -r -d '' lib; do
|
while IFS= read -r -d '' lib; do
|
||||||
|
|||||||
Reference in New Issue
Block a user