1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-25 01:47:25 +08:00

Compare commits

..

No commits in common. "4586808f86bf3bfdf97685380472b63597ce43c0" and "ad99f0c164111fa3cfcbfc5b9cda321800541936" have entirely different histories.

View File

@ -180,17 +180,17 @@ fi
# Check Arch Linux PGP Keyring before System Upgrade to prevent failure. # Check Arch Linux PGP Keyring before System Upgrade to prevent failure.
function upgrade() { function upgrade() {
echo ":: Checking Arch Linux PGP Keyring..." echo "[oh-my-zsh] Checking Arch Linux PGP Keyring"
local installedver="$(sudo pacman -Qi archlinux-keyring | grep -Po '(?<=Version : ).*')" local installedver="$(sudo pacman -Qi archlinux-keyring | grep -Po '(?<=Version : ).*')"
local currentver="$(sudo pacman -Si archlinux-keyring | grep -Po '(?<=Version : ).*')" local currentver="$(sudo pacman -Si archlinux-keyring | grep -Po '(?<=Version : ).*')"
if [ $installedver != $currentver ]; then if [ $installedver != $currentver ]; then
echo " Arch Linux PGP Keyring is out of date." echo "[oh-my-zsh] Arch Linux PGP Keyring is out of date."
echo " Updating before full system upgrade." echo "[oh-my-zsh] Updating before full system upgrade."
sudo pacman -Sy --needed --noconfirm archlinux-keyring sudo pacman -Syu --needed --noconfirm archlinux-keyring
else else
echo " Arch Linux PGP Keyring is up to date." echo "[oh-my-zsh] Arch Linux PGP Keyring is up to date."
echo " Proceeding with full system upgrade."
fi fi
echo "[oh-mh-zsh] Proceeding with full system upgrade."
if (( $+commands[yay] )); then if (( $+commands[yay] )); then
yay -Syu yay -Syu
elif (( $+commands[trizen] )); then elif (( $+commands[trizen] )); then