Skip to content

Commit d0345da

Browse files
committed
123
1 parent 633e913 commit d0345da

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ jobs:
4747
[ ! -f "$QEMU_BIN" ] && echo "ERROR: $QEMU_BIN not found." && exit 1
4848
4949
tmp_output=$(mktemp)
50-
ldd "$QEMU_BIN"
51-
sudo find / -name "libcaps*"
5250
ldd "$QEMU_BIN" > "$tmp_output" 2>&1
5351
missing_libs=$(grep "not found" "$tmp_output" | awk '{print $1}')
5452
5553
for lib in $missing_libs; do
5654
base_lib=$(echo "$lib" | sed -E 's/\.so.*/\.so/')
5755
5856
echo "🔍 正在查找基础库:$base_lib ..."
59-
found=$(sudo find /lib/x86_64-linux-gnu /lib /usr/lib -type f -name "$base_lib" 2>/dev/null | head -n1)
57+
found=$(sudo find /usr/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu / -name "$base_lib" 2>/dev/null | head -n1)
6058
6159
if [ -n "$found" ]; then
6260
target_dir=$(dirname "$found")

0 commit comments

Comments
 (0)