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