Make all useage of sort deterministic

Lots of places used sort (or sort -u) but didn't set LC_ALL=C. This
means it could be slightly different on different people's systems. Make
it deterministic.
This commit is contained in:
Eric Paris
2016-10-19 11:03:12 -04:00
parent c04aec3462
commit 9214f8ab4f
8 changed files with 16 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ mkdir -p $(dirname "${CACHE}")
if $("${NEED_FIND}"); then
kfind -type f -name \*.go \
| xargs -n1 dirname \
| sort -u \
| LC_ALL=C sort -u \
| sed 's|^./||' \
> "${CACHE}"
fi