From 41c1a815c517472e2f3a076a307c2fc1d0175a10 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 22 Jul 2021 10:22:04 +0300 Subject: chore: tell shellcheck to not worry about unquoted variable In this case, not quoting is the right thing to do. Sponsored-by: author --- check | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check b/check index b55a411..606241e 100755 --- a/check +++ b/check @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu @@ -48,9 +48,13 @@ docgen() { $hideok cargo build --all-targets if cargo --list | awk '{ print $1 }' | grep 'clippy$' > /dev/null then + # shellcheck disable=SC2086 cargo clippy $quiet fi + +# shellcheck disable=SC2086 $hideok cargo test $quiet + if cargo fmt --help > /dev/null 2> /dev/null then $hideok cargo fmt -- --check -- cgit v1.2.1