diff --git a/image-builder/image_builder.sh b/image-builder/image_builder.sh index f79d583f54..d604fe3c9f 100755 --- a/image-builder/image_builder.sh +++ b/image-builder/image_builder.sh @@ -85,7 +85,7 @@ do h) usage ;; o) IMAGE="${OPTARG}" ;; s) IMG_SIZE=${OPTARG} - if [ ${IMG_SIZE} -lt 0 ]; then + if [ ${IMG_SIZE} -le 0 ]; then die "Image size has to be greater than 0 MB." fi if [ ${IMG_SIZE} -gt ${MAX_IMG_SIZE_MB} ]; then