From ea8a9bcb8734fae4b8344381b1299aa7df68586c Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 03:44:55 +0800 Subject: [PATCH] init --- shell/updateRisk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/updateRisk b/shell/updateRisk index 7ca8ce9..5a135b1 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -29,9 +29,7 @@ function run(){ } #检查是否正在部署 -command ="ps -ef|grep 'updateRisk $1'|awk 'NR>1{next}{print $1}'" -echo $command -result=${command} +result =`ps -ef|grep 'updateRisk $1'|awk 'NR>1{next}{print $1}'` echo $result if [ ! -z $result ] then