mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
[FIX] Resolve variable error . closed #29
This commit is contained in:
parent
0fb1793329
commit
a76b5a6e27
@ -20,7 +20,7 @@ function log.stdout() {
|
|||||||
|
|
||||||
function image::exist() {
|
function image::exist() {
|
||||||
IMAGE_NAME=$1
|
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
|
if [ $? -eq 0 ];then
|
||||||
log.info "image $IMAGE_NAME exists"
|
log.info "image $IMAGE_NAME exists"
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user