forked from github/server
use find instead of ls to get list of order files.
this addresses the problem leading to bug 2394.
This commit is contained in:
parent
5977ca51b5
commit
9fc0b9f641
|
@ -16,8 +16,10 @@ else
|
||||||
mv orders.dir "orders.dir.$TURN"
|
mv orders.dir "orders.dir.$TURN"
|
||||||
mkdir -p orders.dir
|
mkdir -p orders.dir
|
||||||
fi
|
fi
|
||||||
#shellcheck disable=2011
|
find orders.dir.$TURN -maxdepth 1 -type f -printf "%T+\t%p\n" | sort | cut -f2 | while read
|
||||||
ls -1rt "orders.dir.$TURN/turn-*" | xargs cat > "orders.$TURN"
|
do
|
||||||
|
cat "$REPLY" >> orders.$TURN
|
||||||
|
done
|
||||||
|
|
||||||
lockfile -r3 -l120 orders.queue.lock
|
lockfile -r3 -l120 orders.queue.lock
|
||||||
if [ -e orders.queue ] ; then
|
if [ -e orders.queue ] ; then
|
||||||
|
|
Loading…
Reference in New Issue