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

chore: fix user check in whoami condition #2632

Closed
wants to merge 1 commit into from

Conversation

0xbryer
Copy link

@0xbryer 0xbryer commented Feb 17, 2025

This PR:

I fixed an issue in the user check condition. The script previously had a potential problem where whoami could fail if the username contained spaces or special characters. I added quotes around "root" in the if statement to prevent such errors. Now it should work correctly in all cases.

[x] PR description is clear enough for reviewers.

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