off by one

This commit is contained in:
Connor Olding 2014-03-30 23:15:40 -07:00
parent 0e52874c8b
commit 3316151b40

View File

@ -119,6 +119,6 @@ runsearch() { # [database]
fs_old="$(du -b "$db" | 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"
}