From 806d883476782339e9b2b5b813a3423e95aa815e Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 2 Feb 2026 15:29:45 -0500 Subject: [PATCH] https://code.lotusguild.org/LotusGuild/proxDoc/issues/2 --- proxDoc.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/proxDoc.sh b/proxDoc.sh index f459bf3..500ecfa 100755 --- a/proxDoc.sh +++ b/proxDoc.sh @@ -63,14 +63,21 @@ show_progress() { check_requirements() { log_message info "Checking medical equipment..." - local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci") + local tools=("dmidecode" "lscpu" "ip" "smartctl" "sensors" "lspci" "bc") + local missing=() + for tool in "${tools[@]}"; do if ! command -v "$tool" >/dev/null 2>&1; then - handle_error "Required instrument '$tool' is missing" + missing+=("$tool") fi done + + if [[ ${#missing[@]} -gt 0 ]]; then + handle_error "Missing tools: ${missing[*]}\n Please install with 'curl -s http://10.10.10.63:3000/LotusGuild/freshStartScript/raw/branch/main/freshStart.sh | bash'" + fi } + checkIfOnHypervisor() { if ! command -v pveversion >/dev/null 2>&1; then return 1