master
pan 4 years ago
parent 5f4cce2744
commit 33664f9883
  1. 5
      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 ] if [ ! -z $result ]
then then
echo '检测到自动部署进程在运行,直接kill掉' echo '检测到自动部署进程在运行,直接kill掉'

Loading…
Cancel
Save