Skip to content

Commit 37df8a3

Browse files
sort behave differently under different distributions (Ubuntu, WSL) and, according to the manual, sort order is impacted by the locale specified by the environment. (#635)
To get a stable sorted list of exclude files, need to change the sort command parameters.
1 parent 5b43784 commit 37df8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generate-excludelist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
# Download excludelist
6-
blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | sort | uniq | cut -d '#' -f 1 | grep -v "^#.*" | grep "[^-\s]"))
6+
blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | LC_ALL=C sort -f | uniq | cut -d '#' -f 1 | grep -v "^#.*" | grep "[^-\s]"))
77

88
# Sanity check
99
if [ "$blacklisted" == "" ]; then

0 commit comments

Comments
 (0)