termux: update and upgrade non-interactively when using script

This commit is contained in:
Nico 2025-05-03 16:16:03 +10:00
parent 6f69146a0a
commit c340b2091b

View file

@ -14,8 +14,8 @@ update_packages() {
# pkg (termux) # pkg (termux)
if which pkg > /dev/null; then if which pkg > /dev/null; then
echo "pkg detected, updating..." echo "pkg detected, updating..."
pkg update pkg update -y
pkg upgrade pkg upgrade -y
fi fi
# nix flake # nix flake