Skip to content

Commit

Permalink
Update shadowsocksR
Browse files Browse the repository at this point in the history
Avoiding multiple PID values ​​and triggering parameter passing errors
  • Loading branch information
corerman authored Jul 22, 2017
1 parent 2e409c4 commit 513be2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shadowsocksR
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 513be2b

Please sign in to comment.