Merge pull request #58 from harche/bound_cond

scripts : handle 0 and negative root disk sizes
This commit is contained in:
Jose Carlos Venegas Munoz 2018-02-09 07:50:05 -06:00 committed by GitHub
commit 9699fe43a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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