mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +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:
parent
2c12e19c1d
commit
1877b0bbbb
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ fi
|
||||||
# Switch to work in the gh-pages worktree
|
# Switch to work in the gh-pages worktree
|
||||||
pushd "$build_dir" > /dev/null
|
pushd "$build_dir" > /dev/null
|
||||||
|
|
||||||
_stable=`(ls -d1 v*/ || :) | sort -n | tail -n1`
|
_stable=`(ls -d1 v*/ || :) | sort -V | tail -n1`
|
||||||
[ -n "$_stable" ] && ln -sfT "$_stable" stable
|
[ -n "$_stable" ] && ln -sfT "$_stable" stable
|
||||||
|
|
||||||
# Detect existing versions from the gh-pages branch
|
# Detect existing versions from the gh-pages branch
|
||||||
|
|
Loading…
Add table
Reference in a new issue