Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Jun 4, 2018
1 parent de963fb commit 7eb2582
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shadowsocks
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ fi
RETVAL=0

check_running(){
PID=`ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}'`
if [ ! -z "$PID" ]; then
PID=$(ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}')
if [ -n "$PID" ]; then
return 0
else
return 1
Expand Down
4 changes: 2 additions & 2 deletions shadowsocks-debian
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fi
RETVAL=0

check_running(){
PID=`ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}'`
if [ ! -z "$PID" ]; then
PID=$(ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}')
if [ -n "$PID" ]; then
return 0
else
return 1
Expand Down

0 comments on commit 7eb2582

Please sign in to comment.