You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use mapfile + find -print0 | sort -z for deterministic SQL file detection
- Extract URL_VALIDATION_REGEX to readonly variable at top of script
- Improve WordPress salt fetch error message with troubleshooting guidance
- Replace wp db search | grep -qF with --quiet flag to avoid double scan
Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/d84282a4-c592-4316-a4c7-7fee044ea66d
Co-authored-by: PDowney <[email protected]>
- Replaced two-pass `find -print -quit` + second `find ! -samefile` SQL file detection with `mapfile` + `find -print0 | sort -z` in `scripts/functions/vhost/vhost-import.sh`, ensuring deterministic selection and a single-pass exact-count check.
12
+
- Extracted the URL validation regex to a `readonly URL_VALIDATION_REGEX` variable at the top of `scripts/functions/vhost/vhost-import.sh` to eliminate duplication and simplify future maintenance.
13
+
- Improved the WordPress salt fetch error message to include troubleshooting guidance (internet connection, DNS/firewall/proxy settings, retry instructions).
14
+
- Replaced `wp db search … | grep -qF` with `wp db search … --quiet` so the exit status is used directly, eliminating a redundant full-database grep pass in `run_url_search_replace_if_present`.
echo"Error: Failed to fetch WordPress salts from api.wordpress.org">&2
486
+
echo"Error: Failed to fetch WordPress salts from api.wordpress.org. Please check your internet connection, DNS/firewall/proxy settings, and try running the import again.">&2
0 commit comments