server/process/sendreports.sh

26 lines
357 B
Bash
Raw Permalink Normal View History

#!/bin/bash
##
## Prepare the report
if [ -z "$ERESSEA" ]; then
echo "You have to define the \$ERESSEA environment variable to run $0"
2019-07-31 08:43:23 +02:00
exit 2
fi
2019-07-31 08:43:23 +02:00
if [ -n "$1" ]; then
GAME="$ERESSEA/game-$1"
else
GAME=$ERESSEA
fi
cd "$GAME/reports" || exit
for REPORT in *.sh
do
2020-03-15 14:32:37 +01:00
#echo -n "Sending "
#basename "$REPORT" .sh
bash "$REPORT"
done
cd - || exit