mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-07 05:19:07 -04:00
Fix paru update count
This commit is contained in:
parent
b137bdc0ac
commit
aadc4f7df7
1 changed files with 2 additions and 4 deletions
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
pkg_updates() {
|
||||
updates=$(pacman -Qu | wc -l)
|
||||
aurupdates=$(paru -Qua | wc -l)
|
||||
updates=$((updates + aurupdates))
|
||||
if [ $updates -gt 0 ]; then
|
||||
updates=$(paru -Qu | wc -l)
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo -n " $updates"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue