From bb9d59bac559b82c007a4ad58eaa2ad8ea42b446 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 16 Aug 2014 18:57:06 +0200 Subject: [PATCH] read turn file before sending --- s/preview | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/s/preview b/s/preview index 29c9c1805..a3935aeb9 100755 --- a/s/preview +++ b/s/preview @@ -144,6 +144,10 @@ case "$1" in shift sent=0 cd $TESTROOT/reports + if [ $turn -eq 0 ]; then + [ -f $TESTROOT/turn ] || abort "missing turn file, and no turn specified" + let turn=$(cat $TESTROOT/turn) + fi for faction in $* ; do send $faction sent=1