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

update-gh-pages.sh: create 'stable' symlink

Create/update a symlink to the documentation of the latest released
version (if one exists).
This commit is contained in:
Markus Lehtonen 2020-10-21 10:06:34 +03:00
parent a08fb66fa7
commit 502a8c83a9

View file

@ -103,6 +103,9 @@ fi
# Switch to work in the gh-pages worktree
cd "$build_dir"
_stable=`(ls -d1 v*/ || :) | sort -n | tail -n1`
[ -n "$_stable" ] && ln -sfT "$_stable" stable
if [ -z "`git status --short`" ]; then
echo "No new content, gh-pages branch already up-to-date"
exit 0