Files
runner-images/images/ubuntu/scripts/build/install-oc-cli.sh
Shamil Mubarakshin 1658c2e905 [ubuntu] Cleanup bash scripts (#9076)
* [ubuntu] Cleanup bash scripts

* Fix ms-repos lsb_release

* Fix install-bicep url

* Fix install-nvm
2023-12-29 12:36:27 +01:00

15 lines
553 B
Bash

#!/bin/bash -e
################################################################################
## File: install-oc-cli.sh
## Desc: Install the OC CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install the oc CLI
archive_path=$(download_with_retry "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz")
tar xzf "$archive_path" -C "/usr/local/bin" oc
invoke_tests "CLI.Tools" "OC CLI"