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

Assorted fixes #29

Merged
merged 7 commits into from
Nov 13, 2023
Merged

Assorted fixes #29

merged 7 commits into from
Nov 13, 2023

Conversation

ydirson
Copy link

@ydirson ydirson commented Nov 10, 2023

No description provided.

Calling echo on expanded results only serves to negate the advantage of
using an array, as it will split any array element on whitespace.

Signed-off-by: Yann Dirson <[email protected]>
Cc: Simone Conti <[email protected]>
This is only used by this shell snippet.

Signed-off-by: Yann Dirson <[email protected]>
Cc: Simone Conti <[email protected]>
There's no apparent reason for such a restriction.  We'll need to revisit
anyway when XCP-ng supports other archs.  Just passing through the
--platform flag will likely be better.

Signed-off-by: Yann Dirson <[email protected]>
Cc: Simone Conti <[email protected]>
Example predates the introduction of -v as run.py argument.

Signed-off-by: Yann Dirson <[email protected]>
We don't need any parsing beyond pattern matching, especially when given
parsing is brittle.

Signed-off-by: Yann Dirson <[email protected]>
@ydirson ydirson requested a review from stormi November 10, 2023 13:18
Besides that egrep is deprecated, the command was intended to be run
against /etc/groups, but acted on stdin.

getent is a much cleaner way to do the check anyway.

Signed-off-by: Yann Dirson <[email protected]>
Cc: Simone Conti <[email protected]>
@stormi stormi merged commit 34efdb4 into master Nov 13, 2023
4 checks passed
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.

2 participants