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
7
src/tomb
7
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}
|
||||
|
Loading…
Reference in New Issue
Block a user