From a71abb1da4d30b2d5318e069bba38faaede60b67 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 12 Jun 2007 23:02:18 +0000 Subject: [PATCH] Fixed nonsense syntax in shell file test-setup. - Legacy-Id: 355 --- test/test-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-setup b/test/test-setup index 03b1a3be3..61a3b9ca3 100755 --- a/test/test-setup +++ b/test/test-setup @@ -61,7 +61,8 @@ while true; do echo "$$" > $PIDFILE break else - pid=$(< $PIDFILE ) || die "Couldn't read pidfile '$PIDFILE'" + pid=$(< $PIDFILE ) + [ "$pid" ] || die "Couldn't read pidfile '$PIDFILE'" if kill -0 $pid; then echo "Pidfile for process $pid exists, and process is running. Sleeping." sleep 10