This patch does the following:
- Replaces backticks with $()
- add double quotes around variables to prevent word splitting and globbing
Differential D40747
Add quotes around variables in adduser.sh and replace backticks with $() bcr on Jun 24 2023, 8:32 AM. Authored by Tags None Referenced Files
Subscribers
Details
This patch does the following:
Run through the adduser.sh to see if a user gets created like before
Diff Detail
Event TimelineComment Actions Most of the $()'s should be quoted too, since you are already there, maybe get the script through shellcheck? (And for variables, it's a good idea to use ${var} instead of $var.
Comment Actions That's what I did, trying to keep the diffs small enough by not doing too much at once.
I can do that, will update the diff to include this and the comment above. Thanks. |