dist/tools/ci/static_tests.sh: fix shellcheck warnings
This commit is contained in:
parent
f6290c1c02
commit
89418e4277
6
dist/tools/ci/static_tests.sh
vendored
6
dist/tools/ci/static_tests.sh
vendored
@ -10,7 +10,7 @@
|
|||||||
# directory for more details.
|
# directory for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
. $(dirname "$0")/github_annotate.sh
|
. "$(dirname "${0}")"/github_annotate.sh
|
||||||
|
|
||||||
declare -A DEPS
|
declare -A DEPS
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ DEPS["./dist/tools/codespell/check.sh"]="codespell"
|
|||||||
DEPS["./dist/tools/uncrustify/uncrustify.sh"]="uncrustify"
|
DEPS["./dist/tools/uncrustify/uncrustify.sh"]="uncrustify"
|
||||||
DEPS["./dist/tools/shellcheck/shellcheck.sh"]="shellcheck"
|
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 "
|
echo -n "Required command 'git' for all static tests not found in PATH "
|
||||||
print_warning
|
print_warning
|
||||||
set_result 1
|
set_result 1
|
||||||
@ -61,7 +61,7 @@ set_result() {
|
|||||||
|
|
||||||
function run {
|
function run {
|
||||||
for dep in ${DEPS["$1"]}; do
|
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 "
|
echo -n "Required command '${dep}' for '$*' not found in PATH "
|
||||||
print_warning
|
print_warning
|
||||||
set_result 1
|
set_result 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user