Skip to content

Commit

Permalink
Merge pull request rancher#11861 from yonasberhe23/init_fix
Browse files Browse the repository at this point in the history
fix if statement in init script
  • Loading branch information
yonasberhe23 authored Sep 8, 2024
2 parents e6319fc + 2cf2e3e commit 103c68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/jenkins/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ create_initial_clusters() {
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
version_string=$(echo "${RANCHER_IMAGE_TAG}" | cut -f1 -d"-")
if [[ -z "${RANCHER_VERSION}" && "${RANCHER_IMAGE_TAG}" == "head" ]]; then
if [[ "${RANCHER_IMAGE_TAG}" == "head" ]]; then
RANCHER_VERSION=$(helm search repo rancher-latest --devel --versions | sed -n '1!p' | head -1 | cut -f2 | tr -d '[:space:]')
elif [[ -z "${RANCHER_VERSION}" ]]; then
else
RANCHER_VERSION=$(helm search repo rancher-latest --devel --versions | grep "${version_string}" | head -n 1 | cut -f2 | tr -d '[:space:]')
fi
corral config vars set rancher_image_tag "${RANCHER_IMAGE_TAG}"
Expand Down

0 comments on commit 103c68a

Please sign in to comment.