From 8d30d73bb4924bc2774336fcf17b0c1e3c0d40c4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 21 Aug 2014 19:50:03 +0200 Subject: [PATCH] fix preview script sending to testers.txt --- s/preview | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s/preview b/s/preview index a3935aeb9..9db46f7cb 100755 --- a/s/preview +++ b/s/preview @@ -83,10 +83,10 @@ let turn=$turn+1 } function send() { -echo "sending reports to $1" zip="$turn-$1.zip" zip -q -u $zip $turn-$1.?r email=$(grep "faction=$1:" reports.txt | cut -d: -f2 | sed 's/email=//') +echo "sending reports to $1 / $email" cat /dev/null | mutt -F $ERESSEA/etc/muttrc -s "Testauswertung Spiel $GAME Partei $1" -a $zip -- $email } @@ -153,8 +153,8 @@ case "$1" in sent=1 done if [ $sent -eq 0 ]; then - if [ -e $factions ]; then - for faction in $(cat $factions) ; do + if [ -e ../$factions ]; then + for faction in $(cat ../$factions) ; do send $faction done fi