Skip to content

Commit

Permalink
fix update docs script (#1094)
Browse files Browse the repository at this point in the history
Signed-off-by: xudong liu <[email protected]>
  • Loading branch information
XudongLiuHarold authored Jun 13, 2024
1 parent c6f79c2 commit 8871e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/update-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ update_readme_files() {

update_release_folder() {
git fetch --tags
if [ ! -d "${REPO_ROOT}/releases/${major_minor_version}/vsphere-cloud-controller-manager.yaml" ]; then
if [ ! -e "${REPO_ROOT}/releases/${major_minor_version}/vsphere-cloud-controller-manager.yaml" ]; then
mkdir -p "${REPO_ROOT}"/releases/"${major_minor_version}"
latest_release=$(git tag --sort=-v:refname | grep -E "${SEMVER_REGEX}" | sed -n '1p' | cut -d '.' -f 1,2)
cp "${REPO_ROOT}"/releases/"${latest_release}"/vsphere-cloud-controller-manager.yaml "${REPO_ROOT}"/releases/"${major_minor_version}"/vsphere-cloud-controller-manager.yaml
Expand Down

0 comments on commit 8871e80

Please sign in to comment.