2015-02-07 19:04:50 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
## this script processes incoming order files.
|
|
|
|
# files are delivered into an incoming queue by procmail, then cron runs
|
|
|
|
# this here script to make a non-blocking syntax check and reject or
|
|
|
|
# accept the order file.
|
|
|
|
|
2020-06-27 16:59:16 +02:00
|
|
|
if [ "no" == "$CONFIRM" ] ; then
|
2017-05-26 13:52:55 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2020-06-27 16:59:16 +02:00
|
|
|
if [ -z "$ERESSEA" ] ; then
|
|
|
|
ERESSEA="$HOME/eressea"
|
|
|
|
echo "The ERESSEA environment variable is not set. Assuming $ERESSEA."
|
|
|
|
fi
|
|
|
|
|
2020-06-27 17:30:24 +02:00
|
|
|
cd "$ERESSEA" || exit
|
2020-06-27 16:59:16 +02:00
|
|
|
|
2020-06-27 17:30:24 +02:00
|
|
|
for GAME in "$@"
|
2015-02-07 19:04:50 +01:00
|
|
|
do
|
2020-06-27 17:30:24 +02:00
|
|
|
orders-php/check-orders.sh "$GAME"
|
2015-02-07 19:04:50 +01:00
|
|
|
done
|
2020-06-27 17:30:24 +02:00
|
|
|
|