From dbec40723d9b239f58ac59427d89d1880077bfc6 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Thu, 19 Dec 2024 18:33:57 +0100 Subject: [PATCH] Simplify symlink creation --- scripts/md2html/build.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/md2html/build.sh b/scripts/md2html/build.sh index ab6190efd9..f0766d7ba8 100755 --- a/scripts/md2html/build.sh +++ b/scripts/md2html/build.sh @@ -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