[tor-commits] [translation-tools/master] Fix the pid check to work with -e
sebastian at torproject.org
sebastian at torproject.org
Wed Sep 28 10:45:59 UTC 2011
commit 483b6897b714efe7d50f6248e7d876fa322d35bc
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Wed Sep 28 12:45:45 2011 +0200
Fix the pid check to work with -e
---
update_translations | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/update_translations b/update_translations
index 79a4913..520aef3 100755
--- a/update_translations
+++ b/update_translations
@@ -8,7 +8,7 @@ SCRIPT=`basename $0`
if [ -f ${PIDFILE} ]; then
OLDPID=`cat ${PIDFILE}`
- STILL_RUNNING=`ps -ef | grep ${OLDPID} | grep ${SCRIPT}`
+ STILL_RUNNING=`ps -ef | grep ${OLDPID} | grep ${SCRIPT}` || test $? = 1;
if [ -n "${STILL_RUNNING}" ]; then
exit 2
fi
More information about the tor-commits
mailing list