Skip to content

Commit

Permalink
use oc-mirror matching target version
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Oct 3, 2024
1 parent 6b0fec2 commit eabc428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/04_disconnected_olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ podman login -u "$RHN_USER" -p "$RHN_PASSWORD" registry.redhat.io

which oc-mirror >/dev/null 2>&1
if [ "$?" != "0" ] ; then
curl -sL https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.13.12/oc-mirror.tar.gz | tar xvz -C /usr/bin
LONG_RELEASE=$(cat /root/version.txt | awk -F: '{print $NF}' | cut -d- -f1)
curl -sL https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/$LONG_RELEASE/oc-mirror.tar.gz | tar xvz -C /usr/bin
chmod +x /usr/bin/oc-mirror
fi

Expand Down

0 comments on commit eabc428

Please sign in to comment.