Skip to content

Commit

Permalink
Simplify symlink creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Dec 19, 2024
1 parent 10c10bc commit dbec407
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/md2html/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ for filename in $(ls -1 ../../versions/[23456789].*.md | sort -r) ; do
if [ $version = $latest ]; then
if [[ ${version} != *"rc"* ]];then
# version is not a Release Candidate
pushd ../../deploy/oas
ln -sf v$version.html latest.html
popd
( cd ../../deploy/oas && ln -sf v$version.html latest.html )
latestCopied=v$version
fi
fi

if [ ${minorVersion} != ${lastMinor} ] && [ ${minorVersion} != 2.0 ]; then
pushd ../../deploy/oas
ln -sf v$version.html v$minorVersion.html
popd
( cd ../../deploy/oas && ln -sf v$version.html v$minorVersion.html )
lastMinor=$minorVersion
fi
done
Expand Down

0 comments on commit dbec407

Please sign in to comment.