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

Fix script issue with double quotes in DISTRO_ID extraction #2936

Closed
wants to merge 20 commits into from

Conversation

sumithemmadi
Copy link
Contributor

@sumithemmadi sumithemmadi commented Sep 23, 2023

Pull Request

Thank you for your contribution! Please complete this PR template with the relevant information.

Category

Bug

Feature/Issue Description

Q: Please give a brief summary of your feature/fix
A: This pull request addresses a bug related to the extraction of DISTRO_ID in the script.
The command grep ID= /etc/os-release | grep -v "BUILD" | grep -v "IMAGE" | cut -d= -f2- returned the value "endeavouros" with double quotes, which caused issues in subsequent script checks.

Before

To provide some context, in a previous pull request, #2930, I introduced the double quotes around endeavouros to match the expected format. However, @stephenakq removed the double quotes in 624176e commit.

I've modified the command to remove the double quotes, resulting in the expected value endeavouros.

After

Q: Give a technical rundown of what you have changed (if applicable)
A: I have modified the command responsible for extracting DISTRO_ID from /etc/os-release. The change ensures that the extracted value is stored without double quotes using the sed command.

Test Cases

Q: Describe your test cases, what you have covered and if there are any use cases that still need addressing.
A: I have thoroughly tested this change on various Linux distributions, including EndeavourOS, to ensure it correctly extracts and stores the DISTRO_ID without double quotes. The script now functions as expected on these distributions.

@stephenakq
Copy link
Collaborator

Thank you for the fix. I will examine the problem and might revert the commit that broke it

@stephenakq
Copy link
Collaborator

I reverted my commit. Can you please confirm that it is working again?

@sumithemmadi
Copy link
Contributor Author

Yes it's working.

image

@stephenakq
Copy link
Collaborator

Thank you. I will close this PR. Can you DM in the BeEF discord channel

@sumithemmadi
Copy link
Contributor Author

Sure

Stephen and others added 19 commits September 30, 2023 19:46
This reverts commit 61528a4.
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.12.0 to 4.13.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.56.3 to 1.56.4.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.56.3...v1.56.4)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@wheatley wheatley temporarily deployed to Integrate Pull Request September 30, 2023 09:46 — with GitHub Actions Inactive
@stephenakq stephenakq closed this Oct 1, 2023
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.

3 participants