]> The Tcpdump Group git mirrors - tcpdump/commitdiff
build_matrix.sh: Fix a shellcheck warning
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 31 May 2021 13:03:09 +0000 (15:03 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 31 May 2021 13:04:09 +0000 (15:04 +0200)
The warning was:
Use "${var:?}" to ensure this never expands to /* . [SC2115]

build_matrix.sh

index 63d01f736051335cdd695d7aafa1ce027645a7f1..c00a39df8cede900a177d21c6ffcde4a66e491f2 100755 (executable)
@@ -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