Add news reader in update
This commit is contained in:
parent
d4e2017c7b
commit
78577166b7
1 changed files with 19 additions and 0 deletions
19
updates/menu
19
updates/menu
|
@ -15,6 +15,11 @@ if [ -f /usr/bin/aurman ]; then
|
||||||
aurhelper=1
|
aurhelper=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/lynx ] || [ -f /usr/bin/elinks ] || [ -f /usr/bin/links ]; then
|
||||||
|
options+=("Latestt News" "")
|
||||||
|
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")
|
||||||
|
@ -99,6 +104,20 @@ checkpackagequerydependencies(){
|
||||||
|
|
||||||
clear
|
clear
|
||||||
case $sel in
|
case $sel in
|
||||||
|
'Latestt News')
|
||||||
|
newsurl=''
|
||||||
|
if [ -f /usr/bin/lynx ]; then
|
||||||
|
/usr/bin/lynx ${newurl}
|
||||||
|
else
|
||||||
|
if [ -f /usr/bin/elinks ]; then
|
||||||
|
/usr/bin/elinks ${newurl}
|
||||||
|
else
|
||||||
|
if [ -f /usr/bin/links ]; then
|
||||||
|
/usr/bin/links ${newurl}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
'Upgrade') pacman -Syu;;
|
'Upgrade') pacman -Syu;;
|
||||||
'Upgrade with trizen')
|
'Upgrade with trizen')
|
||||||
checkaurdependencies
|
checkaurdependencies
|
||||||
|
|
Loading…
Reference in a new issue