image_builder: fix bugs

This commit is contained in:
Artem Smirnov
2018-09-24 19:31:36 +03:00
parent 72b20f8c94
commit fa817d9f80
2 changed files with 13 additions and 20 deletions

View File

@@ -190,7 +190,7 @@ if [[ $# > 0 ]]; then
[[ -f $1 ]] || (echo_bold "$1 does not exist" "ERROR"; exit 1)
if [[ -z $2 ]]; then
if [[ ! -z $2 ]]; then
case "$2" in
min)
shrink_free_space $1 $3;;