Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
Avoiding multiple PID values ​​and triggering parameter passing errors

Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Jul 22, 2017
1 parent 7a8a8ed commit d3de7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shadowsocks
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion shadowsocks-debian
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3de7db

Please sign in to comment.