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

fix "dgoss edit" return code #805

Merged
merged 3 commits into from
Jun 3, 2023

Conversation

andregri
Copy link
Contributor

@andregri andregri commented Feb 23, 2023

Checklist
  • make test-all (UNIX) passes. CI will also test this
  • unit and/or integration tests are included (if applicable)
  • documentation is changed or added (if applicable)

Description of change

Before dgoss edit returned a 1 return code if GOSS_VARS was unset but the command was valid.
By refactoring the test of GOSS_VARS with the if clause, dgoss edit command returns the return code of get_docker_file function.

Before dgoss edit returned a 1 return code if GOSS_VARS was unset
but the command was valid.
By refactoring the test of GOSS_VARS with the if clause, dgoss edit
command returns the return code of get_docker_file function.

Signed-off-by: Andrea Grillo <andrea.grillo96@live.com>
Copy link
Member

@aelsabbahy aelsabbahy left a comment

Choose a reason for hiding this comment

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

Apologies, somehow I missed this PR. Looks great, thank you for the contribution!

@aelsabbahy aelsabbahy merged commit bbb8ecb into goss-org:master Jun 3, 2023
1 check passed
@andregri
Copy link
Contributor Author

andregri commented Jun 3, 2023

You're welcome! I'm glad to have contributed to this amazing project ❤️

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.

None yet

2 participants