sort always with LANG=C

somehowe puppet leaks then LANG into execs, which can give different
ordering depending with which LANG puppet is executed. Which is likely
different between a logged in admin and cron
This commit is contained in:
mh 2013-05-22 00:03:56 +02:00
parent c54a95f782
commit 78e547025b

View file

@ -112,7 +112,7 @@ else
fi
# find all the files in the fragments directory, sort them numerically and concat to fragments.concat in the working dir
find fragments/ -type f -follow | sort ${SORTARG} | while read -r fragfile; do
find fragments/ -type f -follow | LANG=C sort ${SORTARG} | while read -r fragfile; do
cat "$fragfile" >> "fragments.concat"
done