Correct "case"

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

View File

@ -32,9 +32,9 @@ f_compare_version(){
# Second: check if greater or lesser
local test_v=$(printf "%s\n%s" "$greater_v" "$lesser_v" | sort -V | head -n 1)
case $test_v in
$getted_v) return true;
$required_v) return false;
*) return false;
$getted_v) return true ;;
$required_v) return false ;;
*) return false ;;
esac
}