wok-6.x diff boinc/stuff/boinc-client @ rev 21325
updated libunistring and libunistring-dev (0.9.6 -> 0.9.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 19 09:47:55 2019 +0100 (2019-04-19) |
parents | 02c70d036ea0 |
children |
line diff
1.1 --- a/boinc/stuff/boinc-client Tue Feb 26 09:14:07 2019 +0100 1.2 +++ b/boinc/stuff/boinc-client Fri Apr 19 09:47:55 2019 +0100 1.3 @@ -342,20 +342,20 @@ 1.4 1.5 status) 1.6 PID=`cat $PIDFILE 2>/dev/null` 1.7 - if [ "$PID" != "" ]; then 1.8 + if [ -n "$PID" ]; then 1.9 # is it still running? 1.10 if [ -z "`${PS} $PID | grep $PID`" ]; then 1.11 # not running. Try the other tests. 1.12 PID="" 1.13 fi 1.14 fi 1.15 - if [ "$PID" = "" ]; then 1.16 + if [ -z "$PID" ]; then 1.17 PID=`local_pidof $BOINCEXE_NAME` 1.18 fi 1.19 - if [ "$PID" = "" ]; then 1.20 + if [ -z "$PID" ]; then 1.21 PID=`local_pidof $BOINCEXE` 1.22 fi 1.23 - if [ "$PID" != "" ]; then 1.24 + if [ -n "$PID" ]; then 1.25 echo "BOINC client is running (pid $PID)." 1.26 else 1.27 if [ -f $BOINCDIR/lockfile -o -f $LOCKFILE ]; then