From 0f45ca4bac19bfdd10c2f6a42db1a259801ff4e9 Mon Sep 17 00:00:00 2001 From: "developerz-ai[bot]" <286432749+developerz-ai[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 13:52:26 +0000 Subject: [PATCH] refactor(sysreport): drop unused run() helper and LINES_LIMIT knob run() was never called and LINES_LIMIT was never set. Sections keep their own printf/head pipelines; no behaviour change. Dz-Task-Id: tsk_9e5bd6fc58d94ae01c729f2ba8d59f3a --- share/tools/sysreport | 5 ----- 1 file changed, 5 deletions(-) diff --git a/share/tools/sysreport b/share/tools/sysreport index 5e208ed..55d20d8 100755 --- a/share/tools/sysreport +++ b/share/tools/sysreport @@ -12,11 +12,6 @@ FULL=0 [ "${1:-}" = '-f' ] || [ "${1:-}" = '--full' ] && FULL=1 sec() { printf '\n## %s\n' "$1"; } -run() { - local label="$1"; shift - printf '\n$ %s\n' "$label" - "$@" 2>&1 | head -n "${LINES_LIMIT:-25}" -} printf '# sysreport — %s — %s\n' "$(hostname)" "$(date -u '+%Y-%m-%d %H:%M UTC')"