mirror of
https://github.com/scopatz/nanorc
synced 2025-06-20 13:40:07 +02:00
Correct "case"
This commit is contained in:
parent
a4e3b3a74e
commit
bd95a5f820
6
tests.sh
6
tests.sh
@ -32,9 +32,9 @@ f_compare_version(){
|
|||||||
# Second: check if greater or lesser
|
# Second: check if greater or lesser
|
||||||
local test_v=$(printf "%s\n%s" "$greater_v" "$lesser_v" | sort -V | head -n 1)
|
local test_v=$(printf "%s\n%s" "$greater_v" "$lesser_v" | sort -V | head -n 1)
|
||||||
case $test_v in
|
case $test_v in
|
||||||
$getted_v) return true;
|
$getted_v) return true ;;
|
||||||
$required_v) return false;
|
$required_v) return false ;;
|
||||||
*) return false;
|
*) return false ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user