diff options
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 71863ef..52f8e05 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -167,7 +167,7 @@ create) | |||
167 | if [ "${ezjail_imagesize}" ]; then | 167 | if [ "${ezjail_imagesize}" ]; then |
168 | _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:*:` | 168 | _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:*:` |
169 | _val=`echo $(( ${_val} ))` | 169 | _val=`echo $(( ${_val} ))` |
170 | [ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize}." | 170 | [ $? -eq 0 -a ${_val} -gt 0 ] || exerr "Error: The image size you specified is somehow incomprehensible (you specified ${ezjail_imagesize})." |
171 | ezjail_imageblockcount=$(( ${_val} / 1048576 )) | 171 | ezjail_imageblockcount=$(( ${_val} / 1048576 )) |
172 | ezjail_imagerestbytes=$(( ${_val} % 1048576 )) | 172 | ezjail_imagerestbytes=$(( ${_val} % 1048576 )) |
173 | fi | 173 | fi |