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

Enclose all variables in the linux userdata in quotes #916

Merged
merged 1 commit into from Sep 10, 2021
Merged

Enclose all variables in the linux userdata in quotes #916

merged 1 commit into from Sep 10, 2021

Conversation

ghost
Copy link

@ghost ghost commented Sep 9, 2021

This encloses all variables in the linux userdata script with quotes to prevent word splitting or globbing. Currently if a string with a space is submitted to one of the unquoted variables, the script breaks.
See shellcheck error SC2046 for details on this type of error and ways to fix it.

This prevents word splitting or globbing.
See shellcheck error SC2046 for details on the error:
https://github.com/koalaman/shellcheck/wiki/SC2046
@keithduncan
Copy link
Contributor

keithduncan commented Sep 10, 2021

Thanks for opening these pull requests @twunderlich-grapl and @christophermaier, I’m sorry you ran into this issue and appreciate your submitting the fix 🙇

I’ll merge this now which will make it available in the template built from the master branch and it will be packaged up in to a tagged release at the end of the month. 🙇

@ghost
Copy link
Author

ghost commented Sep 10, 2021

Thank you @keithduncan for the super-fast response 🥇

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