Skip to content

Commit

Permalink
Merge pull request #23 from Antiz96/revert_yay_checkupdate
Browse files Browse the repository at this point in the history
Revert the needed fix for the 'checkupdate' issue when using yay (#22) as it has been fixed/reverted in upstream
  • Loading branch information
Antiz96 authored Apr 4, 2023
2 parents 1b8da44 + 9b2b646 commit cc2bf67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#Current version
version="1.5.2"
version="1.5.3"

#Check which privilege elevation package is installed (sudo or doas)
if command -v sudo > /dev/null; then
Expand Down Expand Up @@ -38,7 +38,7 @@ case "${option}" in

#Get the list of available update(s) for the AUR (if "yay" or "paru" is installed)
if [ -n "${aur_helper}" ]; then
aur_packages=$("${aur_helper}" -Qua | grep -v ^"::" | awk '{print $1}')
aur_packages=$("${aur_helper}" -Qua | awk '{print $1}')
fi

#If there are updates available for pacman, print them
Expand Down Expand Up @@ -209,7 +209,7 @@ case "${option}" in

#Get the number of available update(s)
if [ -n "${aur_helper}" ]; then
update_number=$( (checkupdates ; "${aur_helper}" -Qua | grep -v ^"::") | wc -l )
update_number=$( (checkupdates ; "${aur_helper}" -Qua) | wc -l )
else
update_number=$(checkupdates | wc -l)
fi
Expand Down

0 comments on commit cc2bf67

Please sign in to comment.