8000 优化 · lbbniu/nginx-php@91efbb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91efbb5

Browse files
committed
优化
1 parent be65693 commit 91efbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dc-prod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141
#docker rmi -f $DC_IMAGE
4242
#echo $DC_IMAGE "镜像删除......."
4343
#如果没有镜像就构建镜像
44-
if [ ! "`docker images | grep $DC_IMAGE`" ]; then
44+
if ! docker images | grep $DC_IMAGE ; then #另一种条件写法
4545
docker build -t $DC_IMAGE .
4646
echo $DC_IMAGE "镜像构建成功......."
4747
fi

0 commit comments

Comments
 (0)
0