forked from github/server
17 lines
440 B
Text
17 lines
440 B
Text
|
#!/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.
|
||
|
|
||
|
for GAME in $*
|
||
|
do
|
||
|
if [ "$GAME" == "eressea" ]; then GAME=2 ; fi
|
||
|
if [ "$GAME" == "e3a" ]; then GAME=3 ; fi
|
||
|
if [ -e $HOME/eressea/game-$GAME/orders.queue ]
|
||
|
then
|
||
|
$HOME/bin/orders-process $GAME
|
||
|
fi
|
||
|
done
|