Skip to content

Commit 1f9f6ac

Browse files
author
142vip.cn
committed
fix(scripts): 优化deploy脚本,修复镜像构建异常
1 parent 32f0767 commit 1f9f6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const SupportScripts = {
4343
`,
4444
// 镜像存在即删除
4545
`
46-
if [[ "$(docker images -q ${imageName} 2> /dev/null)" != "" ]];then
46+
if [ "$(docker images -q ${imageName} 2> /dev/null)" != "" ];then
4747
docker rmi ${imageName}
4848
exit 0;
4949
else

0 commit comments

Comments
 (0)