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