Skip to content

Commit a71abb1

Browse files
committed
Fixed nonsense syntax in shell file test-setup.
- Legacy-Id: 355
1 parent 1ec697c commit a71abb1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/test-setup

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ while true; do
6161
echo "$$" > $PIDFILE
6262
break
6363
else
64-
pid=$(< $PIDFILE ) || die "Couldn't read pidfile '$PIDFILE'"
64+
pid=$(< $PIDFILE )
65+
[ "$pid" ] || die "Couldn't read pidfile '$PIDFILE'"
6566
if kill -0 $pid; then
6667
echo "Pidfile for process $pid exists, and process is running. Sleeping."
6768
sleep 10

0 commit comments

Comments
 (0)