scripts

Random assortment of scripts
Log | Files | Refs

commit 11433c921e1611983458f9265b7828bca3f49289
parent 356c462e964dd04b2182c9aae6cd079237ac4daa
Author: andersuno <anders.hedman01@gmail.com>
Date:   Sun,  2 May 2021 16:21:48 +0200

pacmanupdates.sh now using paru

Diffstat:
Mpacmanupdates.sh | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/pacmanupdates.sh b/pacmanupdates.sh @@ -2,16 +2,15 @@ ping -c 1 google.com >/dev/null 2>&1 || exit -cmd="sudo pacman" +cmd="paru" +aur="--repo" -[ "$1" = "-a" ] && cmd="yay" +[ "$1" = "-a" ] && aur="--aur" $cmd -Sy >> /dev/null || exit -output=$($cmd -Quq | wc -l) +output=$($cmd -Quq $aur | wc -l) if [ "$1" = "-a" ]; then - nonaur=$(sudo pacman -Quq | wc -l) - output=$((output-nonaur)) output="📦AUR:$output" else output="📦:$output"