testsAndMisc/meta/scripts/run_all/run_phone.sh
Krzysztof kuhy Rudnicki db6276b3ff refactor(linux_configuration): move remaining dirs + scripts/ to meta/
- Move fresh-install/ → scripts/single_use/fresh-install/
- Move hosts/ → scripts/periodic_background/hosts/
- Move i3-configuration/ → scripts/periodic_background/i3-configuration/
- Delete linux_configuration/LaTeX/, nix-poc/, report/ (dead dirs)
- Move repo-root scripts/ → meta/scripts/
- Update root .pre-commit-config.yaml: scripts/ → meta/scripts/ (9 entries)
- Update run.sh ARTIFACT_INIT_SCRIPT to meta/scripts/
- Update fresh-install/main.sh: hosts/install.sh + i3-configuration/install.sh paths
- Update check_python_location.sh: add meta/scripts/ to exception list
- Fix midnight flakiness in test_recent_workout_returns_true: use timezone-aware
  local noon instead of now-1h to avoid SQL date() boundary issues
2026-05-15 00:53:01 +02:00

23 lines
998 B
Bash
Executable File

#!/usr/bin/env bash
# run_phone.sh — Visible entrypoint for the phone focus mode workflow.
#
# Quick reference:
# ./scripts/run_all/run_phone.sh Everyday: backup + monitor + minor repair.
# Shows a warning if the phone was wiped.
# ./scripts/run_all/run_phone.sh fresh-phone Full recovery after a factory reset.
# ./scripts/run_all/run_phone.sh doctor Diagnose and repair security drift.
# ./scripts/run_all/run_phone.sh backup Incremental backup only.
# ./scripts/run_all/run_phone.sh monitor Health snapshot only.
# ./scripts/run_all/run_phone.sh --help Show full usage.
set -euo pipefail
_REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
_IMPL="${_REPO_ROOT}/phone_focus_mode/run_phone.sh"
if [[ ! -x "${_IMPL}" ]]; then
printf 'ERROR: implementation script not found or not executable: %s\n' "${_IMPL}" >&2
exit 1
fi
exec bash "${_IMPL}" "$@"