update comments
Avoiding multiple PID values and triggering parameter passing errors Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
7a8a8ed44d
commit
d3de7db4c2
|
|
@ -29,7 +29,7 @@ RETVAL=0
|
|||
|
||||
check_running(){
|
||||
PID=`ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}'`
|
||||
if [ ! -z $PID ]; then
|
||||
if [ ! -z "$PID" ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ RETVAL=0
|
|||
|
||||
check_running(){
|
||||
PID=`ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}'`
|
||||
if [ ! -z $PID ]; then
|
||||
if [ ! -z "$PID" ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user