[FIX] Resolve variable error . closed #29

This commit is contained in:
ysicing 2018-01-08 16:04:13 +08:00
parent 0fb1793329
commit a76b5a6e27

View File

@ -20,7 +20,7 @@ function log.stdout() {
function image::exist() {
IMAGE_NAME=$1
docker images | sed 1d | awk '{print $1":"$2}' | grep $IMAGES_NAME >/dev/null 2>&1
docker images | sed 1d | awk '{print $1":"$2}' | grep $IMAGE_NAME >/dev/null 2>&1
if [ $? -eq 0 ];then
log.info "image $IMAGE_NAME exists"
return 0