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

Repository maintenance #19

Merged
merged 3 commits into from
Jan 11, 2022
Merged

Repository maintenance #19

merged 3 commits into from
Jan 11, 2022

Conversation

nmeyerhans
Copy link
Contributor

Description of changes:

This PR includes 3 commits:

  1. Fix CircleCI, which was broken by GitHub's recent changes to require different ssh connection parameters
  2. Run shellcheck on shell components
  3. Fix warnings highlighted by shellcheck in the ec2-metadata program

There are no functional changes here.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Noah Meyerhans added 3 commits January 11, 2022 13:16
With GitHub's recent change to enforce stronger hash algorithms,
Circle CI was unable to clone the project repository.  By installing
our dependencies earlier in the workflow, we are able to ensure that
the AL2 git and ssh clients are used, which do support the newer
algorithms.

Details in this discussion on the Circle CI forums:
https://discuss.circleci.com/t/discussion-and-resolution-for-error-youre-using-an-rsa-key-with-sha-1-which-is-no-longer-allowed/42572
Shellcheck reported a number of warnings about unquoted references.
The specific issues were harmless given the context, but adding quotes
helps with consistency.

Additionally, shellcheck identified that the '-h' command line option
was defined twice (for --local-hostname and --help).  Drop one of
these references.
Copy link

@halfdime-code halfdime-code left a comment

Choose a reason for hiding this comment

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

One small comment. Otherwise it looks good.

@@ -198,7 +199,7 @@ while [ "$1" != "" ]; do
;;
-g | --tags ) print_tags
;;
-h | --help ) print_help
--help ) print_help

Choose a reason for hiding this comment

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

I don't see a reason for removing -h functionality here for help.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because -h is already used for --local-hostname

@nmeyerhans nmeyerhans merged commit 6417dae into amazonlinux:master Jan 11, 2022
@nmeyerhans nmeyerhans deleted the master branch January 19, 2022 17:56
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.

2 participants