mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
add zypper support
This commit is contained in:
parent
900af292f9
commit
660f949514
1 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,13 @@ if [ -x /usr/bin/apt-get ]; then
|
||||||
print_updates $u
|
print_updates $u
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If zypper exists, use it
|
||||||
|
if [ -x /usr/bin/zypper ]; then
|
||||||
|
u=`/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l`
|
||||||
|
echo "$u" > $mycache
|
||||||
|
print_updates $u
|
||||||
|
fi
|
||||||
|
|
||||||
# If yum exists, use it
|
# If yum exists, use it
|
||||||
if [ -x /usr/bin/yum ]; then
|
if [ -x /usr/bin/yum ]; then
|
||||||
u=`/usr/bin/yum list updates | grep -c "updates"`
|
u=`/usr/bin/yum list updates | grep -c "updates"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue