2017-04-26 15:52:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
pac=$(checkupdates | wc -l)
|
|
|
|
aur=$(cower -u | wc -l)
|
|
|
|
|
|
|
|
check=$((pac + aur))
|
|
|
|
if [[ "$check" != "0" ]]; then
|
|
|
|
echo "$pac %{F#5b5b5b}%{F-} $aur"
|
2017-04-27 22:39:18 -07:00
|
|
|
else
|
|
|
|
echo "%{F#5b5b5b}%{F-}"
|
2017-04-26 15:52:37 -07:00
|
|
|
fi
|