Arrange update menu
This commit is contained in:
parent
d771889322
commit
1eb7570626
1 changed files with 17 additions and 23 deletions
40
updates/menu
40
updates/menu
|
@ -2,11 +2,6 @@
|
||||||
. ./lib
|
. ./lib
|
||||||
|
|
||||||
options=()
|
options=()
|
||||||
if [ ! -f /usr/bin/pacdiff ]; then
|
|
||||||
options+=("Install pacman-contrib" "")
|
|
||||||
options+=("" "")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /usr/bin/trizen ]; then
|
if [ -f /usr/bin/trizen ]; then
|
||||||
options+=("Upgrade with trizen" "trizen -Syu")
|
options+=("Upgrade with trizen" "trizen -Syu")
|
||||||
aurhelper=1
|
aurhelper=1
|
||||||
|
@ -20,13 +15,6 @@ if [ -f /usr/bin/aurman ]; then
|
||||||
aurhelper=1
|
aurhelper=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "$aurhelper" = "1" ]; then
|
|
||||||
options+=("Install trizen" "")
|
|
||||||
options+=("Install yay" "")
|
|
||||||
options+=("Install aurman" "")
|
|
||||||
options+=("Install yaourt" "(End of life)")
|
|
||||||
options+=("" "")
|
|
||||||
fi
|
|
||||||
options+=("Upgrade" "pacman -Syu")
|
options+=("Upgrade" "pacman -Syu")
|
||||||
options+=("Clean orphan" "pacman -Rns \$(pacman -Qqtd)")
|
options+=("Clean orphan" "pacman -Rns \$(pacman -Qqtd)")
|
||||||
options+=("Clean cache" "pacman -Sc")
|
options+=("Clean cache" "pacman -Sc")
|
||||||
|
@ -42,24 +30,30 @@ if [ -f /var/lib/pacman/db.lck ]; then
|
||||||
options+=("Remove db.lck" "rm /var/lib/pacman/db.lck")
|
options+=("Remove db.lck" "rm /var/lib/pacman/db.lck")
|
||||||
options+=("" "")
|
options+=("" "")
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /usr/bin/trizen ]; then
|
||||||
|
options+=("Install trizen" "")
|
||||||
|
fi
|
||||||
|
if [ ! -f /usr/bin/yay ]; then
|
||||||
|
options+=("Install yay" "")
|
||||||
|
fi
|
||||||
|
if [ ! -f /usr/bin/aurman ]; then
|
||||||
|
options+=("Install aurman" "")
|
||||||
|
fi
|
||||||
|
options+=("" "")
|
||||||
|
if [ ! -f /usr/bin/pacdiff ]; then
|
||||||
|
options+=("Install pacman-contrib" "")
|
||||||
|
options+=("" "")
|
||||||
|
fi
|
||||||
if [ "$aurhelper" = "1" ]; then
|
if [ "$aurhelper" = "1" ]; then
|
||||||
if [ ! -f /usr/bin/downgrade ]; then
|
|
||||||
options+=("Install downgrade" "")
|
|
||||||
fi
|
|
||||||
if [ ! -f /usr/bin/pkgstats ]; then
|
if [ ! -f /usr/bin/pkgstats ]; then
|
||||||
options+=("Install pkgstats" "")
|
options+=("Install pkgstats" "")
|
||||||
fi
|
fi
|
||||||
if [ ! -f /usr/bin/aurvote ]; then
|
if [ ! -f /usr/bin/aurvote ]; then
|
||||||
options+=("Install aurvote" "(AUR)")
|
options+=("Install aurvote" "(AUR)")
|
||||||
fi
|
fi
|
||||||
if [ ! -f /usr/bin/trizen ]; then
|
if [ ! -f /usr/bin/downgrade ]; then
|
||||||
options+=("Install trizen" "")
|
options+=("" "")
|
||||||
fi
|
options+=("Install downgrade" "")
|
||||||
if [ ! -f /usr/bin/yay ]; then
|
|
||||||
options+=("Install yay" "")
|
|
||||||
fi
|
|
||||||
if [ ! -f /usr/bin/aurman ]; then
|
|
||||||
options+=("Install aurman" "")
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue