testsAndMisc/meta/scripts/run_all/run_phone.sh
Krzysztof kuhy Rudnicki 4097807ef1
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Point run_phone wrapper at phone-focus-mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:27:44 +01:00

30 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# run_phone.sh — Visible entrypoint for the phone focus mode workflow.
#
# The implementation lives in the extracted phone-focus-mode repo
# (~/src/phone-focus-mode); this wrapper only resolves and execs it.
#
# Quick reference:
# ./meta/scripts/run_all/run_phone.sh Everyday: backup + monitor + minor repair.
# Shows a warning if the phone was wiped.
# ./meta/scripts/run_all/run_phone.sh fresh-phone Full recovery after a factory reset.
# ./meta/scripts/run_all/run_phone.sh doctor Diagnose and repair security drift.
# ./meta/scripts/run_all/run_phone.sh backup Incremental backup only.
# ./meta/scripts/run_all/run_phone.sh monitor Health snapshot only.
# ./meta/scripts/run_all/run_phone.sh --help Show full usage.
set -euo pipefail
_REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
# shellcheck source=../../../linux_configuration/lib/extracted_repos.sh
source "${_REPO_ROOT}/linux_configuration/lib/extracted_repos.sh"
_PFM_DIR="$(require_extracted_repo phone-focus-mode "run_phone.sh")"
_IMPL="${_PFM_DIR}/run_phone.sh"
if [[ ! -f "${_IMPL}" ]]; then
printf 'ERROR: implementation script not found: %s\n' "${_IMPL}" >&2
exit 1
fi
exec bash "${_IMPL}" "$@"