fix: remove unnecessary grep -E flag and clarify Adminer warning message - #218
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/ad62fbda-21da-4a2e-8873-f57c850767f4 Co-authored-by: PDowney <11467177+PDowney@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix grep command to use basic regex in admin control panel install script
fix: remove unnecessary grep -E flag and clarify Adminer warning message
Apr 30, 2026
Removed outdated entry for admin control panel install cleanup.
PDowney
approved these changes
Apr 30, 2026
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
PDowney
marked this pull request as ready for review
April 30, 2026 02:27
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes small maintainability/clarity tweaks to the Adminer card removal guard logic in the admin control panel installer script.
Changes:
- Remove unnecessary
grep -Eusage for a pattern that works with basic regular expressions. - Clarify the warning message to reference the exact
<div id="adminer-tool">structure being searched.
| # To avoid corrupting the page if the structure has changed, first ensure that the expected | ||
| # single-line opening <div> for the Adminer card is present before applying the sed range. | ||
| if grep -qE '<div[^>]*id="adminer-tool"[^>]*>' "/var/www/admin/control-panel/index.html"; then | ||
| if grep -q '<div[^>]*id="adminer-tool"[^>]*>' "/var/www/admin/control-panel/index.html"; then |
There was a problem hiding this comment.
PR description/checklist indicates CHANGELOG.md was updated, but this PR diff only changes admin-control-panel-install.sh. Either include the corresponding CHANGELOG.md update (per project standard) or update the PR description/checklist to match what actually changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Two minor cleanup fixes in
admin-control-panel-install.shfor the Adminer card removal logic.Software Version Updates
Changed Versions
No version changes — code quality fixes only.
Version Diff
Verification Checklist
-Eflag removed — pattern uses only BRE-compatible syntax ([^>]*), ERE not neededid="adminer-tool") being searched, making it immediately actionable for diagnosisCHANGELOG.mdupdatedNotes
The
grep -Eflag was inconsistent with the rest of the script and unnecessary for this pattern. The updated warning message reduces ambiguity when the expected HTML structure is not found during Adminer removal.Original prompt