mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +00:00
Tomb size lower limit
Most filesystems can't deal with less than 10 MiB space closes issue #68
This commit is contained in:
parent
568cc43ab6
commit
f37f7dd51d
2
tomb
2
tomb
@ -796,6 +796,8 @@ dig_tomb() {
|
|||||||
|
|
||||||
[[ $tombsize != <-> ]] && die "Size argument is not an integer"
|
[[ $tombsize != <-> ]] && die "Size argument is not an integer"
|
||||||
|
|
||||||
|
[[ $tombsize -lt 10 ]] && die "Tombs can't be smaller than 10 megabytes"
|
||||||
|
|
||||||
if [ -e ${tombdir}/${tombfile} ]; then
|
if [ -e ${tombdir}/${tombfile} ]; then
|
||||||
_warning "A tomb exists already. I'm not digging here:"
|
_warning "A tomb exists already. I'm not digging here:"
|
||||||
_warning " `ls -lh ${tombdir}/${tombfile}`"
|
_warning " `ls -lh ${tombdir}/${tombfile}`"
|
||||||
|
Loading…
Reference in New Issue
Block a user