From 6a6ac5cc75d97ee274e7d93c3f3366b73d05daf3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 20 Jul 2023 15:59:08 +0000 Subject: [PATCH] Update checklibs.sh for libpcap VERSION.txt name change --- checklibs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checklibs.sh b/checklibs.sh index dd22860a2..52defc0db 100644 --- a/checklibs.sh +++ b/checklibs.sh @@ -30,7 +30,7 @@ check_libpcre() { check_libpcap() { PCAP_SOURCE="https://www.tcpdump.org/release/" - PCAP_VERSION=$(cat $NDIR/libpcap/VERSION) + PCAP_VERSION=$(cat $NDIR/libpcap/VERSION 2>/dev/null || cat $NDIR/libpcap/VERSION.txt) PCAP_LATEST=$(curl -s $PCAP_SOURCE | perl -lne 'if(/libpcap-([\d.]+).tar.gz/){print $1}' | newest) if [ "$PCAP_VERSION" != "$PCAP_LATEST" ]; then echo "Newer version of libpcap available"