From: Denis Ovsienko Date: Tue, 17 Aug 2021 16:20:32 +0000 (+0100) Subject: CI: Clean in ../libpcap only if present. [skip ci] X-Git-Tag: tcpdump-4.99.2~211 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/1f225ed4532bdf34ca42c12602ad33c3b732e90c CI: Clean in ../libpcap only if present. [skip ci] ./build_matrix.sh[89]: cd: /export/home/denis/libpcap: [No such file or directory] (cherry picked from commit ed0175cddadfac745e0a778937a941261fc53107) --- diff --git a/build_matrix.sh b/build_matrix.sh index c5f699a0..b16e03e5 100755 --- a/build_matrix.sh +++ b/build_matrix.sh @@ -86,7 +86,9 @@ for CC in $MATRIX_CC; do else echo_magenta 'Use system libpcap' >&2 purge_directory "$PREFIX" - (cd ../libpcap; make distclean || echo '(Ignoring the make error.)') + if [ -d ../libpcap ]; then + (cd ../libpcap; make distclean || echo '(Ignoring the make error.)') + fi build_tcpdump fi done