From 389d31335a6b96168dbcafcd87294cd319f78637 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 11 Jan 2022 23:13:15 +0200 Subject: [PATCH] scripts/update-gh-pages: fix symlink to stable version Fix the sorting magic of release directories. Correctly sort according to the version number. --- scripts/github/update-gh-pages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/github/update-gh-pages.sh b/scripts/github/update-gh-pages.sh index a71a5d6ed..d2f1a699d 100755 --- a/scripts/github/update-gh-pages.sh +++ b/scripts/github/update-gh-pages.sh @@ -184,7 +184,7 @@ fi # Switch to work in the gh-pages worktree pushd "$build_dir" -_stable=`(ls -d1 v*/ || :) | sort -n | tail -n1` +_stable=`(ls -d1 v*/ || :) | sort -V | tail -n1` [ -n "$_stable" ] && ln -sfT "$_stable" stable # Detect existing versions from the gh-pages branch