mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-19 01:39:48 +00:00
Merge pull request #58 from harche/bound_cond
scripts : handle 0 and negative root disk sizes
This commit is contained in:
commit
9699fe43a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user