Missing bracket.

This commit is contained in:
erdgeist 2006-05-03 01:08:21 +00:00
parent 2e43ae3750
commit 1d1c2aa41b

View File

@ -167,7 +167,7 @@ create)
if [ "${ezjail_imagesize}" ]; then
_val=`echo "${ezjail_imagesize}"|tr A-Z a-z|sed -Ees:g:km:g -es:m:kk:g -es:k:*2b:g -es:b:*128w:g -es:w:*4\ :g -e"s:(^|[^0-9])0x:\1\0X:g" -ey:x:*:`
_val=`echo $(( ${_val} ))`
[ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize}."
[ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize})."
ezjail_imageblockcount=$(( ${_val} / 1048576 ))
ezjail_imagerestbytes=$(( ${_val} % 1048576 ))
fi