Update tests.sh

This commit is contained in:
Tiago Programmer 2019-12-19 21:04:33 +00:00 committed by GitHub
parent bd95a5f820
commit fd9a31365f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,12 @@ f_test_nano_version() {
return f_compare_version $G_NANO_VERSION $version return f_compare_version $G_NANO_VERSION $version
} }
f_test_nano_version() { f_test_shellcheck_version() {
local version="nano --version | cut -d ' ' -f 8" local version="nano --version | cut -d ' ' -f 8"
return f_compare_version $G_SHELLCHECK_VERSION $version return f_compare_version $G_SHELLCHECK_VERSION $version
} }
f_test_nano_version
f_test_shellcheck_version
# ....shellcheck -f diff *.sh | git apply | git commit -a -m "Shellcheck fast corrections" # ....shellcheck -f diff *.sh | git apply | git commit -a -m "Shellcheck fast corrections"
shellcheck *.sh shellcheck *.sh