Update pip and cargo on ubuntu and termux
This commit is contained in:
parent
38097407cd
commit
bd7c5020f9
1 changed files with 12 additions and 2 deletions
|
@ -181,8 +181,10 @@ update() {
|
||||||
doas apt update && doas apt full-upgrade -y && doas apt autoremove -y && doas apt autoclean -y
|
doas apt update && doas apt full-upgrade -y && doas apt autoremove -y && doas apt autoclean -y
|
||||||
{%@@ elif distro_id == "termux" @@%}
|
{%@@ elif distro_id == "termux" @@%}
|
||||||
pkg update && pkg upgrade --yes
|
pkg update && pkg upgrade --yes
|
||||||
pip install --upgrade $(pip list --outdated | tail -n +3 | awk '{print $1}')
|
{%@@ endif @@%}
|
||||||
cargo install-update -a
|
{%@@ if distro_id == "termux" or distro_id == "ubuntu" @@%}
|
||||||
|
pip-update-installed
|
||||||
|
cargo-update-installed
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,6 +198,14 @@ update() {
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pip-update-installed() {
|
||||||
|
pip install --upgrade $(pip list --outdated | tail -n +3 | awk '{print $1}')
|
||||||
|
}
|
||||||
|
|
||||||
|
cargo-update-installed() {
|
||||||
|
cargo install-update -a
|
||||||
|
}
|
||||||
|
|
||||||
{%@@ if profile == "Moria" @@%}
|
{%@@ if profile == "Moria" @@%}
|
||||||
repo() {
|
repo() {
|
||||||
aur sync -Su --margs --noconfirm
|
aur sync -Su --margs --noconfirm
|
||||||
|
|
Loading…
Reference in a new issue