mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-07 13:29:08 -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
|
#!/usr/bin/env bash
|
||||||
pkg_updates() {
|
pkg_updates() {
|
||||||
updates=$(pacman -Qu | wc -l)
|
updates=$(paru -Qu | wc -l)
|
||||||
aurupdates=$(paru -Qua | wc -l)
|
if [ "$updates" -gt 0 ]; then
|
||||||
updates=$((updates + aurupdates))
|
|
||||||
if [ $updates -gt 0 ]; then
|
|
||||||
echo -n " $updates"
|
echo -n " $updates"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue