Skip to content

Commit 5231242

Browse files
marquizklihub
authored andcommitted
scripts/build/update-gh-pages: fix parsing of latest release tag
Use --version-sort when sorting versions. Fixes the stable/ symlink that is expected to point to the release with the highest version number. Signed-off-by: Markus Lehtonen <[email protected]>
1 parent 799d8f2 commit 5231242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/update-gh-pages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pushd "$build_dir"
147147
# Add "const" files we need in root dir
148148
touch .nojekyll
149149

150-
_stable=`(ls -d1 v*/ || :) | sort -n | tail -n1`
150+
_stable=`(ls -d1 v*/ || :) | sort -V | tail -n1`
151151
if [ -n "$_stable" ]; then
152152
ln -sfT "$_stable" stable
153153
redirect_to="stable"

0 commit comments

Comments
 (0)