Files
blomarchy/bin/blob-update-available

18 lines
309 B
Bash
Executable File

#!/bin/bash
# blob:summary=Print the number of pending package updates
# blob:hidden=true
pending=0
if blob-cmd-present checkupdates; then
pending=$(checkupdates 2>/dev/null | wc -l)
fi
if blob-cmd-present yay; then
aur=$(yay -Qua 2>/dev/null | wc -l)
pending=$((pending + aur))
fi
echo "$pending"