From b3593ce7ab20f0f61c8a0641baa409b176fa8fda Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Fri, 25 Sep 2026 12:04:12 -0600 Subject: [PATCH] Fix Debian shellcheck validation --- lib/jeannie/commands.sh | 3 ++- scripts/recover-power | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/jeannie/commands.sh b/lib/jeannie/commands.sh index 7fe6353..7acbd39 100644 --- a/lib/jeannie/commands.sh +++ b/lib/jeannie/commands.sh @@ -1,3 +1,5 @@ +# shellcheck shell=bash + plan_homelab() { local target="${1:-all}" local stack @@ -2365,4 +2367,3 @@ change_journal() { homelab_map() { "${REPO_ROOT}/scripts/homelab-map" "${@:2}" } - diff --git a/scripts/recover-power b/scripts/recover-power index 920893e..e3f6637 100755 --- a/scripts/recover-power +++ b/scripts/recover-power @@ -47,4 +47,8 @@ run_optional "GitOps status" "${REPO_ROOT}/jeannie" gitops-status run_optional "Public edge doctor" "${REPO_ROOT}/jeannie" doctor-edge run_optional "Final status cascade" "${REPO_ROOT}/jeannie" status -printf '\nRecovery sequence complete%s.\n' "$([ "$DRY_RUN" = "true" ] && printf ' dry-run' || true)" +dry_run_suffix="" +if [ "$DRY_RUN" = "true" ]; then + dry_run_suffix=" dry-run" +fi +printf '\nRecovery sequence complete%s.\n' "${dry_run_suffix}"