mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-22 18:18:59 +00:00
Fix operators to compare numerically, not lexicographically
The operator < compares two strings lexicographically resulting in that a 100MB tomb is considered smaller than 47MB or 18MB. Closes #489
This commit is contained in:
parent
0c8d4cf477
commit
dcdf4cb3bb
4
tomb
4
tomb
@ -2162,13 +2162,13 @@ lock_tomb_with_key() {
|
||||
ext3|ext4) ;;
|
||||
ext3maxinodes|ext4maxinodes) ;;
|
||||
btrfs)
|
||||
if [[ $tombsize < 49283072 ]]; then
|
||||
if [[ $tombsize -lt 49283072 ]]; then
|
||||
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 47MB." \
|
||||
$filesystem
|
||||
fi
|
||||
;;
|
||||
btrfsmixedmode)
|
||||
if [[ $tombsize < 18874368 ]]; then
|
||||
if [[ $tombsize -lt 18874368 ]]; then
|
||||
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 18MB." \
|
||||
$filesystem
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user