Thanks to visit codestin.com
Credit goes to github.com

Skip to content

idea: add 'set -u' for build.sh and update.sh #335

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

Closed
rffontenelle opened this issue Nov 24, 2023 · 2 comments · Fixed by #339
Closed

idea: add 'set -u' for build.sh and update.sh #335

rffontenelle opened this issue Nov 24, 2023 · 2 comments · Fixed by #339

Comments

@rffontenelle
Copy link
Contributor

They both have set -ex. Considering that they rely on the environment variable $LOCALE, how about adding set -u as well to error in case $LOCALE is not set at running time? i believe it is a fairly good safety resource.

@Dumeng
Copy link
Collaborator

Dumeng commented Nov 29, 2023

Actually, we set the env var in the below workflow template. So, it should be fine in the GitHub Action environments.

But I agree it might be a problem if someone forked the scripts or ran them in local environments. A PR is welcome.

@rffontenelle
Copy link
Contributor Author

Yeah, I notice you've got it covered. My suggestion is really more an extra precaution. PR sent.

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 a pull request may close this issue.

2 participants