Skip to content

Commit

Permalink
update: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cory committed Oct 22, 2023
1 parent b4c6f37 commit 322d793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ patches:
bin_check busybox
bin_check oc_mirror
bin_check oc-mirror
bin_check rclone
bin_check restic
Expand Down
4 changes: 2 additions & 2 deletions scripts/library/bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bin_check(){
which "${name}" || download_"${name}"

case ${name} in
helm|kustomize|oc|odo|openshift-install|opm|s2i|tkn)
helm|kustomize|oc|oc-mirror|odo|openshift-install|opm|s2i|tkn)
echo "auto-complete: . <(${name} completion bash)"

# shellcheck source=/dev/null
Expand Down Expand Up @@ -56,7 +56,7 @@ download_oc(){
curl "${DOWNLOAD_URL}" -sL | tar zx -C "${BIN_PATH}/" oc kubectl
}

download_oc_mirror(){
download_oc-mirror(){
BIN_VERSION=4.12
DOWNLOAD_URL=https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-${BIN_VERSION}/oc-mirror.tar.gz
curl "${DOWNLOAD_URL}" -sL | tar zx -C "${BIN_PATH}/"
Expand Down

0 comments on commit 322d793

Please sign in to comment.