Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rancher rc components script #501

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Conversation

tashima42
Copy link
Contributor

Add a script that generates the components file for a given git ref and prints if there are any dev or rc components in that ref.

./bin/rancher-rc-deps release/v2.10

@tashima42 tashima42 self-assigned this Nov 11, 2024
@@ -0,0 +1,34 @@
#!/usr/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

All of the logic looks fine but nits on formatting. Can you make this look like the rest of the shell scripts in this dir?

  • capital var names
  • surrounded with "${}"
  • 4 space indentation
  • update the she bang to "#!/bin/sh" (I don't see any bash specific code)
  • single "[", "]" in "if" statements

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@tashima42 tashima42 merged commit fa12d74 into rancher:master Nov 11, 2024
@tashima42 tashima42 deleted the check-rc-deps branch November 11, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants