Skip to content

Commit e12d589

Browse files
committed
symlink to file in same directory
Update build.sh
1 parent 0996320 commit e12d589

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/md2html/build.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ for filename in $(ls -1 ../../versions/[23456789].*.md | sort -r) ; do
5454
if [ $version = $latest ]; then
5555
if [[ ${version} != *"rc"* ]];then
5656
# version is not a Release Candidate
57-
ln -sf ../../deploy/oas/v$version.html ../../deploy/oas/latest.html
57+
pushd ../../deploy/oas
58+
ln -sf v$version.html latest.html
59+
popd
5860
latestCopied=v$version
5961
fi
6062
fi
6163

6264
if [ ${minorVersion} != ${lastMinor} ] && [ ${minorVersion} != 2.0 ]; then
63-
ln -sf ../../deploy/oas/v$version.html ../../deploy/oas/v$minorVersion.html
65+
pushd ../../deploy/oas
66+
ln -sf v$version.html v$minorVersion.html
67+
popd
6468
lastMinor=$minorVersion
6569
fi
6670
done

0 commit comments

Comments
 (0)