From: Francois-Xavier Le Bail Date: Mon, 31 May 2021 13:03:09 +0000 (+0200) Subject: build_matrix.sh: Fix a shellcheck warning X-Git-Tag: tcpdump-4.99.1~6 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/50d4b6dcee32cf508b489f157718ac2118987125 build_matrix.sh: Fix a shellcheck warning The warning was: Use "${var:?}" to ensure this never expands to /* . [SC2115] (cherry picked from commit 815919247bf40f65777cae4b4eb95f78b4e28917) --- diff --git a/build_matrix.sh b/build_matrix.sh index 63d01f73..c00a39df 100755 --- a/build_matrix.sh +++ b/build_matrix.sh @@ -93,7 +93,7 @@ for BUILD_LIBPCAP in ${MATRIX_BUILD_LIBPCAP:-no yes}; do done else echo_magenta 'Use system libpcap' - rm -rf "$PREFIX"/* + rm -rf "${PREFIX:?}"/* make -C ../libpcap distclean || : build_tcpdump fi