forked from github/server
Bei Neuauswertungen die Befehlsdatei neu erzeugen
This commit is contained in:
parent
d1461e6622
commit
3327e996e5
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ else
|
||||||
mv orders.dir "orders.dir.$TURN"
|
mv orders.dir "orders.dir.$TURN"
|
||||||
mkdir -p orders.dir
|
mkdir -p orders.dir
|
||||||
fi
|
fi
|
||||||
|
rm -f "orders.$TURN"
|
||||||
find "orders.dir.$TURN" -maxdepth 1 -type f -printf "%T+\t%p\n" | sort | cut -f2 | while read -r
|
find "orders.dir.$TURN" -maxdepth 1 -type f -printf "%T+\t%p\n" | sort | cut -f2 | while read -r
|
||||||
do
|
do
|
||||||
cat "$REPLY" >> "orders.$TURN"
|
cat "$REPLY" >> "orders.$TURN"
|
||||||
|
@ -23,7 +24,7 @@ done
|
||||||
|
|
||||||
lockfile -r3 -l120 orders.queue.lock
|
lockfile -r3 -l120 orders.queue.lock
|
||||||
if [ -e orders.queue ] ; then
|
if [ -e orders.queue ] ; then
|
||||||
mv orders.queue "orders.dir.$TURN/orders.queue"
|
mv orders.queue "orders.queue.bak.$TURN"
|
||||||
fi
|
fi
|
||||||
rm -f orders.queue.lock
|
rm -f orders.queue.lock
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue