]> The Tcpdump Group git mirrors - tcpslice/commitdiff
build_matrix.sh: Fix a shellcheck note
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 3 Dec 2023 15:58:35 +0000 (16:58 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 3 Dec 2023 16:08:51 +0000 (17:08 +0100)
The note was:
Double quote to prevent globbing and word splitting. [SC2086]

build_matrix.sh

index 8ae6a9c736db2d75e8736d37d4f248175aa20e11..0f10015a5adbd21515c230c6abd08d329780cad6 100755 (executable)
@@ -37,7 +37,7 @@ for CC in $MATRIX_CC; do
         continue
     fi
     for BUILD_LIBPCAP in $MATRIX_BUILD_LIBPCAP; do
-        COUNT=`increment $COUNT`
+        COUNT=`increment "$COUNT"`
         echo_magenta "===== SETUP $COUNT: CC=$CC BUILD_LIBPCAP=$BUILD_LIBPCAP ====="  >&2
         if [ "$BUILD_LIBPCAP" = yes ]; then
             echo_magenta "Build libpcap (CMAKE=no)" >&2