Stop checking for commands the package set guarantees
gum and ttfx ship in omarchy-base.packages and setfont comes with kbd, so none of them needs a presence check — and every setfont call already tolerates a failure anyway. btrfs-progs is in omarchy-other.packages and a reset genuinely cannot proceed without it, so that one keeps its guard and moves to the helper. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
4564c24a0e
commit
f228c4d390
@@ -433,8 +433,7 @@ rollback_degraded_rekey() {
|
||||
}
|
||||
|
||||
main() {
|
||||
command -v gum >/dev/null || { echo "Error: gum is required" >&2; exit 1; }
|
||||
command -v btrfs >/dev/null || { echo "Error: btrfs-progs is required" >&2; exit 1; }
|
||||
omarchy-cmd-present btrfs || { echo "Error: btrfs-progs is required" >&2; exit 1; }
|
||||
|
||||
root_is_btrfs_at || fail "reset requires the standard Omarchy Btrfs layout (subvol=@)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user