Skip to content

Commit c6e4c65

Browse files
James MunnsStjepan Glavina
James Munns
authored and
Stjepan Glavina
committed
Restore Version Sort (#121)
Since we only build the book on Linux for now, restore the `--version-sort` flag for gnu sort. This makes me feel better that when sorting numbering oddities (e.g. multiple digits) will be handled correctly. This was removed when I was trying to get this script to work on Windows and OSX, which is no longer relevant.
1 parent d89b384 commit c6e4c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/install-mdbook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main() {
99
https://github.com/rust-lang-nursery/mdbook \
1010
| cut -d/ -f3 \
1111
| grep -E '^v0\.3\.[0-9]+$' \
12-
| sort \
12+
| sort --version-sort \
1313
| tail -n1)
1414

1515
curl -LSfs https://japaric.github.io/trust/install.sh | \

0 commit comments

Comments
 (0)