off by one
This commit is contained in:
parent
0e52874c8b
commit
3316151b40
2
meow.sh
2
meow.sh
|
@ -119,6 +119,6 @@ runsearch() { # [database]
|
||||||
|
|
||||||
fs_old="$(du -b "$db" | cut -f1)"
|
fs_old="$(du -b "$db" | cut -f1)"
|
||||||
fs_new="$(du -b $tmp | cut -f1)"
|
fs_new="$(du -b $tmp | cut -f1)"
|
||||||
[ "$fs_new" -lt "$fs_old" ] || die "new database is smaller than current!"
|
[ "$fs_new" -ge "$fs_old" ] || die "new database is smaller than current!"
|
||||||
mv $tmp "$db"
|
mv $tmp "$db"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user