mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +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>
21 lines
949 B
Bash
Executable File
21 lines
949 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Ensure the Omarchy keyring package is installed and populated
|
|
# omarchy:requires-sudo=true
|
|
|
|
if omarchy-pkg-missing omarchy-keyring || ! sudo pacman-key --list-keys 40DFB630FF42BCFFB047046CF0134EE680CAC571 &>/dev/null; then
|
|
sudo pacman-key --recv-keys 40DFB630FF42BCFFB047046CF0134EE680CAC571 --keyserver keys.openpgp.org
|
|
sudo pacman-key --lsign-key 40DFB630FF42BCFFB047046CF0134EE680CAC571
|
|
|
|
# This is generally not a good idea, but this is a special case because we're going to be updating
|
|
# the full set of packages in omarchy-update-system-pkgs right after this (and it needs latest keyring)!
|
|
sudo pacman -Sy
|
|
omarchy-pkg-add omarchy-keyring
|
|
|
|
sudo pacman-key --list-keys 40DFB630FF42BCFFB047046CF0134EE680CAC571
|
|
fi
|
|
|
|
# Ensure we have the latest archlinux-keyring, maintainer keys might have changed
|
|
echo -e "\e[32m\nUpdate Arch signing keys\e[0m"
|
|
sudo pacman -Sy --noconfirm archlinux-keyring >/dev/null
|