Inline explain_exit_code and clean diagnostics_check docs

Moved the explain_exit_code function directly into api.func, removing external dependency loading. Also cleaned up merge conflict markers and unified documentation for diagnostics_check in build.func.
This commit is contained in:
CanbiZ
2025-11-17 11:26:59 +01:00
parent 7b56a79964
commit 36f5e32d48
2 changed files with 87 additions and 15 deletions

View File

@@ -1552,14 +1552,11 @@ advanced_settings() {
# diagnostics_check()
#
# - Ensures diagnostics config file exists at /usr/local/community-scripts/diagnostics
<<<<<<< Updated upstream
# - Asks user whether to send anonymous diagnostic data
# - Saves DIAGNOSTICS=yes/no in the config file
=======
# - Creates file if missing with default DIAGNOSTICS=yes
# - Reads current diagnostics setting from file
# - Sets global DIAGNOSTICS variable for API telemetry opt-in/out
>>>>>>> Stashed changes
# ------------------------------------------------------------------------------
diagnostics_check() {
if ! [ -d "/usr/local/community-scripts" ]; then