Fixed nonsense syntax in shell file test-setup.

- Legacy-Id: 355
This commit is contained in:
Henrik Levkowetz 2007-06-12 23:02:18 +00:00
parent 1ec697c90a
commit a71abb1da4

View file

@ -61,7 +61,8 @@ while true; do
echo "$$" > $PIDFILE echo "$$" > $PIDFILE
break break
else else
pid=$(< $PIDFILE ) || die "Couldn't read pidfile '$PIDFILE'" pid=$(< $PIDFILE )
[ "$pid" ] || die "Couldn't read pidfile '$PIDFILE'"
if kill -0 $pid; then if kill -0 $pid; then
echo "Pidfile for process $pid exists, and process is running. Sleeping." echo "Pidfile for process $pid exists, and process is running. Sleeping."
sleep 10 sleep 10