From 33664f98835c9763be8ff5f6ebd262be0d69f2bc Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 03:29:14 +0800 Subject: [PATCH] init --- shell/updateRisk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/updateRisk b/shell/updateRisk index 74d7941..29b44fe 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -22,7 +22,10 @@ function run(){ } #检查是否正在部署 -result=`ps -ef|grep updateRisk|awk 'NR>1{next}{print $1}'` +command ="ps -ef|grep "updateRisk $1"|awk 'NR>1{next}{print $1}'" +echo $command +result=${command} +echo $result if [ ! -z $result ] then echo '检测到自动部署进程在运行,直接kill掉'