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

Make katello-certs-check mostly shellcheck clean #864

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jul 4, 2023

No description provided.

Copy link
Member Author

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

It may be a good idea to apply shellcheck in CI somehow.

Comment on lines +217 to 218
DNS_LIST=$(openssl x509 -noout -text -in "$CERT_FILE" | grep DNS:)
if [[ $? == "0" ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

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

This still yields and error but I'm not sure how to rewrite this so it doesn't.

@@ -248,23 +240,23 @@ check-cert-san
check-cert-usage-key-encipherment
check-shortname

if [[ $EXIT_CODE == "0" ]] && ([[ $TARGET == ${SERVER_TARGET} ]] || [[ -z "$TARGET" ]]) ; then
if [[ $EXIT_CODE == "0" ]] && ([[ $TARGET == "${SERVER_TARGET}" ]] || [[ -z "$TARGET" ]]) ; then
Copy link
Member Author

Choose a reason for hiding this comment

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

Same here: it complains about the subshell.

@evgeni
Copy link
Member

evgeni commented Jul 4, 2023

It may be a good idea to apply shellcheck in CI somehow.

I added shellcheck i forklift recently, have a look :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants