From 8dbf28ace99b7d23525980ec2fa988d7f0d6b9b8 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 3 Dec 2021 23:39:41 +0000 Subject: [PATCH] check_format.sh: fix up prints for shellcheck Signed-off-by: Jim Harris Change-Id: I55f04e2b4ad481ebc7a7f565ed7a7a10c4156f93 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10549 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Changpeng Liu Reviewed-by: Aleksey Marchuk Reviewed-by: Ben Walker Reviewed-by: Monica Kenguva Reviewed-by: Paul Luse --- scripts/check_format.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index b60b4914c..aab0cfec1 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -481,7 +481,7 @@ function check_bash_static_analysis() { local rc=0 if hash shellcheck 2> /dev/null; then - echo -n "Checking Bash style..." + echo -n "Checking Bash static analysis with shellcheck..." shellcheck_v=$(shellcheck --version | grep -P "version: [0-9\.]+" | cut -d " " -f2) @@ -534,7 +534,7 @@ SC2119,SC2120,SC2128,SC2148,SC2153,SC2154,SC2164,SC2174,SC2178,SC2001,SC2206,SC2 get_bash_files | xargs -P$(nproc) -n1 shellcheck $SHCH_ARGS &> shellcheck.log if [[ -s shellcheck.log ]]; then - echo " Bash formatting errors detected!" + echo " Bash shellcheck errors detected!" cat shellcheck.log if $SHCK_APPLY; then @@ -548,7 +548,7 @@ SC2119,SC2120,SC2128,SC2148,SC2153,SC2154,SC2164,SC2174,SC2178,SC2001,SC2206,SC2 fi rm -f shellcheck.log else - echo "You do not have shellcheck installed so your Bash style is not being checked!" + echo "You do not have shellcheck installed so your Bash static analysis is not being performed!" fi return $rc