mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
save a few forks in updates-available
This commit is contained in:
parent
31f0d49667
commit
0a7070005c
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ if [ "$1" = "--detail" -o "$1" = "--short" ]; then
|
||||||
if [ "$1" = "--detail" ]; then
|
if [ "$1" = "--detail" ]; then
|
||||||
printf "$detail"
|
printf "$detail"
|
||||||
else
|
else
|
||||||
short=`printf "$detail" | grep ^Inst | wc -l`
|
short=`printf "$detail" | grep -c ^Inst`
|
||||||
printf "$short"
|
printf "$short"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -66,7 +66,7 @@ update_cache() {
|
||||||
apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst > $mycache &
|
apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst > $mycache &
|
||||||
elif which zypper >/dev/null; then
|
elif which zypper >/dev/null; then
|
||||||
# If zypper exists, use it
|
# If zypper exists, use it
|
||||||
zypper --no-refresh lu --best-effort | grep 'v |' | wc -l > $mycache &
|
zypper --no-refresh lu --best-effort | grep -c 'v |' > $mycache &
|
||||||
elif which yum >/dev/null; then
|
elif which yum >/dev/null; then
|
||||||
# If yum exists, use it
|
# If yum exists, use it
|
||||||
# TODO: We need a better way of counting updates available from a RH expert
|
# TODO: We need a better way of counting updates available from a RH expert
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue