1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 16:27:05 +00:00

scripts/update-gh-pages: fix symlink to stable version

Fix the sorting magic of release directories. Correctly sort according
to the version number.
This commit is contained in:
Markus Lehtonen 2022-01-11 23:13:15 +02:00 committed by k8s-infra-cherrypick-robot
parent 81b65ef857
commit 389d31335a

View file

@ -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