File tree Expand file tree Collapse file tree
scripts/install/tools/frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ if [[ "${INSTALL_ADMINER}" -eq 0 ]]; then
5252 # If this structure changes, update this command (or switch to an HTML-aware tool) to avoid partial removal.
5353 # To avoid corrupting the page if the structure has changed, first ensure that the expected
5454 # single-line opening <div> for the Adminer card is present before applying the sed range.
55- if grep -qE ' <div[^>]*id="adminer-tool"[^>]*>' " /var/www/admin/control-panel/index.html" ; then
55+ if grep -q ' <div[^>]*id="adminer-tool"[^>]*>' " /var/www/admin/control-panel/index.html" ; then
5656 # Extract the block that would be deleted, then perform a simple sanity check
5757 # to ensure there are no nested <div> elements that would cause a partial removal.
5858 adminer_block=" $(
@@ -66,7 +66,7 @@ if [[ "${INSTALL_ADMINER}" -eq 0 ]]; then
6666 echo " Warning: Adminer tool block appears to contain nested <div> elements; skipping Adminer card removal to avoid corrupting index.html." >&2
6767 fi
6868 else
69- echo " Warning: Expected Adminer tool div not found in index.html; skipping Adminer card removal." >&2
69+ echo " Warning: Expected <div> with id= \" adminer-tool \" not found in index.html; skipping Adminer card removal." >&2
7070
7171 fi
7272fi
You can’t perform that action at this time.
0 commit comments