Correct mistakes - second try

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

View File

@ -32,7 +32,7 @@ f_compare_version(){
# Second: check if greater or lesser
local test_v
$test_v=$(printf "%s\n%s" "$required_v" "$getted_v" | sort -V | head -n 1)
test_v="$(printf "%s\n%s" "$required_v" "$getted_v" | sort -V | head -n 1)"
case $test_v in
$getted_v) return 0 ;;
$required_v) return 1 ;;
@ -44,13 +44,13 @@ f_compare_version(){
f_test_nano_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)
}
f_test_shellcheck_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)
}