Skip to content

Commit

Permalink
Assign OPENSHIFT_VERSION soon if not manually defined
Browse files Browse the repository at this point in the history
  • Loading branch information
elfosardo committed Apr 17, 2024
1 parent b24c4e6 commit 7ddd2fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 01_install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,10 @@ fi
retry_with_timeout 5 60 "curl $OPENSHIFT_CLIENT_TOOLS_URL | sudo tar -U -C /usr/local/bin -xzf -"
sudo chmod +x /usr/local/bin/oc
oc version --client -o json

if [[ -z "$OPENSHIFT_VERSION" ]]; then
source release_info.sh
save_release_info ${OPENSHIFT_RELEASE_IMAGE} ${OCP_DIR}
OPENSHIFT_VERSION=$(openshift_version)
export OPENSHIFT_VERSION
fi

0 comments on commit 7ddd2fb

Please sign in to comment.