From c6e4c659c4ed21ed2f2d03094fcaca0c03c3395a Mon Sep 17 00:00:00 2001 From: James Munns Date: Wed, 28 Aug 2019 17:16:02 +0200 Subject: [PATCH] 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. --- ci/install-mdbook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/install-mdbook.sh b/ci/install-mdbook.sh index 3417c9c8..01c87f88 100755 --- a/ci/install-mdbook.sh +++ b/ci/install-mdbook.sh @@ -9,7 +9,7 @@ main() { https://github.com/rust-lang-nursery/mdbook \ | cut -d/ -f3 \ | grep -E '^v0\.3\.[0-9]+$' \ - | sort \ + | sort --version-sort \ | tail -n1) curl -LSfs https://japaric.github.io/trust/install.sh | \