Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

goenv-init: Fix use of optional variables that should not crash the calling shell if unset #431

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

Salamandar
Copy link
Contributor

Just use the ${variable:-} syntax to accept unset variables

Our Yunohost helper is broken since the 2.2.10 because we source goenv-init with set -u and we don't define the optional environment variables.

@ChronosMasterOfAllTime
Copy link
Contributor

@Salamandar please fix the failing unit tests.

…alling shell if unset

Just use the ${variable:-} syntax to accept unset variables
@Salamandar
Copy link
Contributor Author

Should be fine now. Just have to wait for the CI to confirm it.

@Salamandar
Copy link
Contributor Author

Hmmmm the CI does not want to start?

@ChronosMasterOfAllTime ChronosMasterOfAllTime added this pull request to the merge queue Dec 26, 2024
Merged via the queue into go-nv:master with commit 9fa1c43 Dec 26, 2024
8 checks passed
@Salamandar Salamandar deleted the fix_set_u branch December 26, 2024 22:52
@Salamandar
Copy link
Contributor Author

Thank you !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants