From 97dc2d772f6f4d20046b7722c75be37650480fe2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Sep 2026 21:20:42 +0000 Subject: [PATCH] fix(alignment): repair f-string quoting in config check, add home to scope - Fixed line 537: f-string now uses single quotes inside double-quoted shell command to avoid nested quote collision - Added home = get_user_home(user) to check_config_integrity loop scope so the config check can resolve the correct home directory --- scripts/agent-health-check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/agent-health-check.py b/scripts/agent-health-check.py index cf8575d..ccff866 100755 --- a/scripts/agent-health-check.py +++ b/scripts/agent-health-check.py @@ -531,11 +531,11 @@ def check_config_integrity(): print(f" ⬜ {name}: cannot SSH — skip config check") continue + home = get_user_home(user) + # Check YAML parses yaml_ok = ssh(host, - f"python3 -c " - f"'import yaml; yaml.safe_load(open(\'{home}/.hermes/config.yaml\')); print(\'OK\')" ' - "2>&1 || echo 'FAIL'", + f"python3 -c \"import yaml; yaml.safe_load(open('{home}/.hermes/config.yaml')); print('OK')\" 2>&1 || echo 'FAIL'", user=user) if not yaml_ok: print(f" ❌ {name}: SSH UNREACHABLE (config check skipped)")