修复shell中一个指令单词错误
This commit is contained in:
parent
3ed651670b
commit
bcbba32201
|
@ -11,12 +11,12 @@ echo '删除容器:' ${name}
|
||||||
docker rm ${name}
|
docker rm ${name}
|
||||||
|
|
||||||
|
|
||||||
decare imageId=$(docker images -q --filter "reference=$name")
|
declare imageId=$(docker images -q --filter "reference=$name")
|
||||||
|
|
||||||
# 判断旧镜像是否存在
|
# 判断旧镜像是否存在
|
||||||
if [ -n "$imageId" ];then
|
if [ -n "$imageId" ];then
|
||||||
|
|
||||||
decare imageId2=$(docker images -q --filter "reference=$name:old")
|
declare imageId2=$(docker images -q --filter "reference=$name:old")
|
||||||
|
|
||||||
# 判断之前是否还有其他的旧镜像
|
# 判断之前是否还有其他的旧镜像
|
||||||
if [ -n "$imageId2" ];then
|
if [ -n "$imageId2" ];then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user