mirror of
https://github.com/scopatz/nanorc
synced 2025-06-20 13:40:07 +02:00
Correct Mistakes - 3rd try
This commit is contained in:
parent
03ac1685dc
commit
c2cd9d66c3
8
tests.sh
8
tests.sh
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user