Skip to content

Conversation

@andrewbogott
Copy link

Fix the wget line that downloads the actual charts.

Previously this just passed a filename (not a url) to wget. That certainly doesn't do anything on /my/ version of wget.

Fix the wget line that downloads the actual charts.

Previously this just passed a filename (not a url) to wget. That certainly doesn't do anything on /my/ version of wget.

Signed-off-by: Andrew Bogott <[email protected]>
@scbizu scbizu requested a review from Copilot July 18, 2025 08:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the mirror-k8s-repos.sh script where wget was being called with just a filename instead of a complete URL. The fix ensures that charts can be properly downloaded by prepending the repository URL to the filename.

  • Fixed wget command to use complete URL by prepending $repo_url/ to the filename
  • Corrected a logical error that would prevent the script from actually downloading files

for tgz in $tgzs; do
if [ ! -f "${tgz##*/}" ]; then
wget $tgz
wget $repo_url/$tgz
Copy link

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable concatenation should be properly quoted to handle URLs or filenames with spaces or special characters. Consider using "$repo_url/$tgz" instead of $repo_url/$tgz.

Suggested change
wget $repo_url/$tgz
wget "$repo_url/$tgz"

Copilot uses AI. Check for mistakes.
@scbizu scbizu requested a review from cbuto July 18, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant