diff --git a/src/tomb b/src/tomb index 0a4aed6..901105c 100755 --- a/src/tomb +++ b/src/tomb @@ -353,7 +353,12 @@ create_tomb() { tombname=${tombfile%%\.*} tombfile=${tombname}.tomb tombsize=$opts[-s] - + + if [[ $tombsize != <-> ]]; then + error "Size is not an integer" + return 1 + fi + if [ -e ${tombdir}/${tombfile} ]; then error "tomb exists already. I'm not digging here:" ls -lh ${tombdir}/${tombfile}