From d18a5202fe62ff04e290c9ec7935947297569b05 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sun, 11 Oct 2020 00:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0openresty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/updateRisk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/updateRisk b/shell/updateRisk index c381032..3395cb6 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -1,8 +1,8 @@ #!/bin/sh #自动部署脚本 -#如果当前存在自动部署进程,除当前进程以外其他直接kill掉 -if [ `ls -l *.pid|wc -l` -gt 0 ] +#如果当前存在自动部署进程直接kill掉 +if [ `find -maxdepth 1 -name "*.pid"|wc -l` -gt 0 ] then for file in *.pid do