Skip to content

Commit d1efd66

Browse files
committed
Fix ldd parsing for ClamAV library copy
1 parent 327a084 commit d1efd66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cdk/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN mkdir -p /tmp/clamav_libs && \
1515
LIBCLAMAV=$(find /usr/lib -path '*/libclamav.so.*' | head -n 1) && \
1616
echo "Collecting runtime libraries for /usr/bin/clamscan and $LIBCLAMAV" && \
1717
ldd /usr/bin/clamscan "$LIBCLAMAV" | \
18-
awk '/=> \// { print $3 } /^\/[^[:space:]]+/ { print $1 }' | \
18+
awk '/=> \// { print $3 } $1 ~ /^\// && $2 ~ /^\(/ { print $1 }' | \
1919
sort -u | \
2020
xargs -I '{}' cp -v '{}' /tmp/clamav_libs/
2121

0 commit comments

Comments
 (0)