mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Only fetch the ignored package list once and shout about it if necessary
This commit is contained in:
@@ -1,13 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Used in package emergencies if a bad package has been pushed and we can't revoke.
|
||||||
|
# Requires manually installing the good package using sudo pacman -U <url>
|
||||||
|
ignored_packages=$(omarchy-pkg-ignored)
|
||||||
|
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
echo "sudo pacman -Syu --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
[[ -n $ignored_packages ]] && echo "sudo pacman -Syu --noconfirm --ignore \"$ignored_packages\""
|
||||||
sudo pacman -Syu --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
sudo pacman -Syu --noconfirm --ignore "$ignored_packages"
|
||||||
|
|
||||||
if omarchy-pkg-aur-accessible; then
|
if omarchy-pkg-aur-accessible; then
|
||||||
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
||||||
echo "yay -Sua --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
[[ -n $ignored_packages ]] && echo "yay -Sua --noconfirm --ignore \"$ignored_packages\""
|
||||||
yay -Sua --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
yay -Sua --noconfirm --ignore "$ignored_packages"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user