Skip to content

Commit c3d4187

Browse files
committed
ci(release): tolerate missing ELF diagnostic tools
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent f9e782f commit c3d4187

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

tasks/scripts/verify-glibc-symbols.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,17 @@ for binary in "$@"; do
5959
fi
6060

6161
echo "==> Inspecting $binary"
62-
file "$binary" || true
63-
ldd "$binary" || true
62+
if command -v file >/dev/null 2>&1; then
63+
file "$binary" || true
64+
else
65+
echo "file: not available"
66+
fi
67+
68+
if command -v ldd >/dev/null 2>&1; then
69+
ldd "$binary" || true
70+
else
71+
echo "ldd: not available"
72+
fi
6473

6574
highest=
6675
found=0

0 commit comments

Comments
 (0)