Give the desktop update function nice output like just done in Termux.
This commit is contained in:
parent
ae3112d969
commit
391129e19b
@ -95,30 +95,39 @@
|
|||||||
case $pkg_mgr in
|
case $pkg_mgr in
|
||||||
apt)
|
apt)
|
||||||
if [[ $distribution != "ParrotOS" ]]; then
|
if [[ $distribution != "ParrotOS" ]]; then
|
||||||
echo "*** Apt ***" &&
|
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove {{ update_accept_var }} &&
|
||||||
|
echo -e "\n*** Clean ***" &&
|
||||||
sudo apt clean {{ update_accept_var }} &&
|
sudo apt clean {{ update_accept_var }} &&
|
||||||
|
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
||||||
sudo dpkg --configure -a &&
|
sudo dpkg --configure -a &&
|
||||||
|
echo -e "\n*** Fix Broken/Missing ***" &&
|
||||||
sudo apt --fix-broken --fix-missing install &&
|
sudo apt --fix-broken --fix-missing install &&
|
||||||
|
echo -e "\n*** Upgrade ***" &&
|
||||||
sudo apt dist-upgrade --allow-downgrades --fix-broken \
|
sudo apt dist-upgrade --allow-downgrades --fix-broken \
|
||||||
--fix-missing {{ update_accept_var }} ||
|
--fix-missing {{ update_accept_var }} ||
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
echo "*** Parrot ***"
|
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove {{ update_accept_var }} &&
|
||||||
parrot_mirrors_suck=true &&
|
parrot_mirrors_suck=true &&
|
||||||
while [[ $parrot_mirrors_suck ]]; do
|
while [[ $parrot_mirrors_suck ]]; do
|
||||||
unset parrot_mirrors_suck
|
unset parrot_mirrors_suck
|
||||||
|
echo -e "\n*** Upgrade ***"
|
||||||
sudo parrot-upgrade
|
sudo parrot-upgrade
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
parrot_mirrors_suck=true
|
parrot_mirrors_suck=true
|
||||||
|
echo -e "*** Update Cache, Again ***"
|
||||||
sudo apt update --fix-missing
|
sudo apt update --fix-missing
|
||||||
fi
|
fi
|
||||||
done ||
|
done ||
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
echo -e "\n******* Mission Complete!! *******"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
pacman)
|
pacman)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user