From 89418e4277433d0e7b7bb232486c260db850c3ae Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 12 Jan 2021 20:56:48 +0100 Subject: [PATCH] dist/tools/ci/static_tests.sh: fix shellcheck warnings --- dist/tools/ci/static_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/tools/ci/static_tests.sh b/dist/tools/ci/static_tests.sh index 37579ae40c..0e5b91f6c3 100755 --- a/dist/tools/ci/static_tests.sh +++ b/dist/tools/ci/static_tests.sh @@ -10,7 +10,7 @@ # directory for more details. # -. $(dirname "$0")/github_annotate.sh +. "$(dirname "${0}")"/github_annotate.sh declare -A DEPS @@ -24,7 +24,7 @@ DEPS["./dist/tools/codespell/check.sh"]="codespell" DEPS["./dist/tools/uncrustify/uncrustify.sh"]="uncrustify" DEPS["./dist/tools/shellcheck/shellcheck.sh"]="shellcheck" -if ! command -v git 2>&1 1>/dev/null; then +if ! command -v git &>/dev/null; then echo -n "Required command 'git' for all static tests not found in PATH " print_warning set_result 1 @@ -61,7 +61,7 @@ set_result() { function run { for dep in ${DEPS["$1"]}; do - if ! command -v ${dep} 2>&1 1>/dev/null; then + if ! command -v ${dep} &>/dev/null; then echo -n "Required command '${dep}' for '$*' not found in PATH " print_warning set_result 1