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

chore: Improve variable checks for empty and uninitialized values #598

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

Conversation

hexcow
Copy link

@hexcow hexcow commented Mar 3, 2025

I updated the checks for the variables to ensure that they also cover empty strings and uninitialized variables. The previous condition only checked for unset variables, so it could have missed cases where the variable is set but empty. Replaced if [ ! "$VAR" ]; with if [ -z "$VAR" ]; for better reliability.

This should prevent any false negatives in variable validation.

@hexcow hexcow requested a review from a team as a code owner March 3, 2025 09:22
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.

1 participant