mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
19 lines
583 B
Bash
Executable File
19 lines
583 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Reinstall all default Omarchy packages from the stable channel
|
|
# omarchy:requires-sudo=true
|
|
|
|
set -e
|
|
|
|
# Reinstall all default Omarchy packages from the stable channel and downgrade any packages that are too new.
|
|
|
|
# Set the package repository to the stable mirrors
|
|
omarchy-refresh-pacman
|
|
|
|
# Downgrade any packages to the stable setup
|
|
sudo pacman -Suu --noconfirm
|
|
|
|
# Ensure all packages are installed
|
|
mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$')
|
|
sudo pacman -Syu --noconfirm --needed "${packages[@]}"
|