Correct Mistakes - 3rd try

This commit is contained in:
Tiago Programmer 2019-12-20 19:02:03 +00:00 committed by GitHub
parent 03ac1685dc
commit c2cd9d66c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,16 +45,16 @@ f_compare_version(){
f_test_nano_version() { f_test_nano_version() {
local version local version
version="$(nano --version | cut -d ' ' -f 4)" version="$(nano --version | cut -d ' ' -f 4)"
return $(f_compare_version $G_NANO_VERSION $version) return "$(f_compare_version $G_NANO_VERSION $version)"
} }
f_test_shellcheck_version() { f_test_shellcheck_version() {
local version local version
version="$(nano --version | cut -d ' ' -f 8)" 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 printf "Nano Version ok? %s" f_test_nano_version
f_test_shellcheck_version printf "Shellcheck Version ok? %s" 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