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

general improvements #14

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

chassing
Copy link
Member

  • ⬆️ Python 3.12
  • 🚨 fix shellcheck errors
  • ✨ hooks: add post_output
  • ✨ terraform-provider-sync script
  • VARIABLES_TF_JSON_FILE, VARIABLES_TF_FILE env vars

@chassing chassing self-assigned this Feb 14, 2025
@@ -63,16 +66,16 @@ fi


function validate_generate_tf_config() {
local F_PATH=$(command -v generate-tf-config)
F_PATH=$(command -v generate-tf-config)
Copy link

Choose a reason for hiding this comment

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

local variables are good...

Suggested change
F_PATH=$(command -v generate-tf-config)
local f_path
f_path=$(command -v generate-tf-config)

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC2155
Copy link

Choose a reason for hiding this comment

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

I've had issues with this in the past... it's not a good idea when using set -e. I don't recommend it. I know that it makes a bit clumsy to declare locals or export variables, but it's a good check to have.

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