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

Detecting user existence in a group is not always working #17

Open
travnick opened this issue Jan 11, 2024 · 0 comments
Open

Detecting user existence in a group is not always working #17

travnick opened this issue Jan 11, 2024 · 0 comments

Comments

@travnick
Copy link

If (net localgroup $($pp.DockerGroup) | Select-String $groupUser -Quiet) {

There is an issue while detecting if user already exists in a group. This causes an error and terminates the instalation.

In my case, I have a username with parenthesis ()

This prints nothing:

echo "my user (123)" |Select-String "my user (123)"

But this one works:

echo "my user (123)" |Select-String "my user"
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

No branches or pull requests

1 participant