mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-19 19:15:14 +00:00
Fixed integer checking of -s param
This commit is contained in:
parent
3fe53affc9
commit
f2ba4136b8
5
src/tomb
5
src/tomb
@ -354,6 +354,11 @@ create_tomb() {
|
|||||||
tombfile=${tombname}.tomb
|
tombfile=${tombname}.tomb
|
||||||
tombsize=$opts[-s]
|
tombsize=$opts[-s]
|
||||||
|
|
||||||
|
if [[ $tombsize != <-> ]]; then
|
||||||
|
error "Size is not an integer"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e ${tombdir}/${tombfile} ]; then
|
if [ -e ${tombdir}/${tombfile} ]; then
|
||||||
error "tomb exists already. I'm not digging here:"
|
error "tomb exists already. I'm not digging here:"
|
||||||
ls -lh ${tombdir}/${tombfile}
|
ls -lh ${tombdir}/${tombfile}
|
||||||
|
Loading…
Reference in New Issue
Block a user