Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
4586808f
Unverified
Commit
4586808f
authored
Apr 09, 2023
by
deimosian
Committed by
GitHub
Apr 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(archlinux): improve update function messages (#11608)
parent
90ec2d1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
archlinux.plugin.zsh
plugins/archlinux/archlinux.plugin.zsh
+5
-5
No files found.
plugins/archlinux/archlinux.plugin.zsh
View file @
4586808f
...
@@ -180,17 +180,17 @@ fi
...
@@ -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
"
[oh-my-zsh] Checking Arch Linux PGP Keyring
"
echo
"
:: 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
"
[oh-my-zsh]
Arch Linux PGP Keyring is out of date."
echo
" Arch Linux PGP Keyring is out of date."
echo
"
[oh-my-zsh]
Updating before full system upgrade."
echo
" Updating before full system upgrade."
sudo
pacman
-Sy
--needed
--noconfirm
archlinux-keyring
sudo
pacman
-Sy
--needed
--noconfirm
archlinux-keyring
else
else
echo
"[oh-my-zsh] Arch Linux PGP Keyring is up to date."
echo
" 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment