forked from github/server
fix preview send script
This commit is contained in:
parent
8803a9e9a8
commit
d880de0b2a
|
@ -85,7 +85,7 @@ let turn=$turn+1
|
|||
function send() {
|
||||
echo "sending reports to $1"
|
||||
zip="$turn-$1.zip"
|
||||
zip -q -u $yip $turn-$1.?r
|
||||
zip -q -u $zip $turn-$1.?r
|
||||
email=$(grep "faction=$1:" reports.txt | cut -d: -f2 | sed 's/email=//')
|
||||
cat /dev/null | mutt -F $ERESSEA/etc/muttrc -s "Testauswertung Spiel $GAME Partei $1" -a $zip -- $email
|
||||
}
|
||||
|
@ -142,15 +142,19 @@ case "$1" in
|
|||
;;
|
||||
"send")
|
||||
shift
|
||||
sent=0
|
||||
cd $TESTROOT/reports
|
||||
for faction in $* ; do
|
||||
send $faction
|
||||
sent=1
|
||||
done
|
||||
cd $TESTROOT
|
||||
if [ $sent -eq 0 ]; then
|
||||
if [ -e $factions ]; then
|
||||
for faction in $(cat $factions) ; do
|
||||
send $faction
|
||||
done
|
||||
fi
|
||||
fi
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue