Skip to content

Commit a498d26

Browse files
authored
Fix curl command missing -L flag in install_deps.sh (llm-d#226)
Add -L flag to curl command downloading OpenShift client to follow redirects. This fixes incomplete downloads that cause tar extraction failures. Fixes llm-d#225
1 parent d11b026 commit a498d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/install_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function install_helm_linux {
6666
function install_oc_linux {
6767
set -euo pipefail
6868
local oc_file_name=openshift-client-$(uname -s | sed -e "s/Linux/linux/g" -e "s/Darwin/apple-darwin/g")$(echo "-$(uname -m)" | sed -e 's/-x86_64//g' -e 's/-amd64//g' -e 's/aarch64/arm64-rhel9/g').tar.gz
69-
curl https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable/$oc_file_name -o $oc_file_name
69+
curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable/$oc_file_name -o $oc_file_name
7070
tar xzf $oc_file_name
7171
sudo mv oc /usr/local/bin/
7272
sudo mv kubectl /usr/local/bin/

0 commit comments

Comments
 (0)