Update shadowsocksR

Avoiding multiple PID values ​​and triggering parameter passing errors
This commit is contained in:
CorerMan 2017-07-22 13:23:08 +08:00 committed by GitHub
parent 2e409c4b1a
commit 513be2ba1b

View File

@ -25,7 +25,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