mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-10 05:08:54 +00:00
Merge pull request #58 from harche/bound_cond
scripts : handle 0 and negative root disk sizes
This commit is contained in:
@@ -85,7 +85,7 @@ do
|
|||||||
h) usage ;;
|
h) usage ;;
|
||||||
o) IMAGE="${OPTARG}" ;;
|
o) IMAGE="${OPTARG}" ;;
|
||||||
s) IMG_SIZE=${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."
|
die "Image size has to be greater than 0 MB."
|
||||||
fi
|
fi
|
||||||
if [ ${IMG_SIZE} -gt ${MAX_IMG_SIZE_MB} ]; then
|
if [ ${IMG_SIZE} -gt ${MAX_IMG_SIZE_MB} ]; then
|
||||||
|
Reference in New Issue
Block a user