Add automatic confirm to update function

Update package management commands for Arch and Debian systems to include --noconfirm and improve options.
This commit is contained in:
alvinlollo
2026-01-29 11:37:04 +11:00
committed by GitHub
parent cc0cc337f7
commit dd03a83a23
+4 -2
View File
@@ -96,13 +96,15 @@ update () {
# Update arch based systems with yay AUR helper
if command -v pacman >/dev/null && command -v yay >/dev/null; then
echo "✅ 'pacman' and 'yay' found. Updating."
sudo pacman -Syu && yay -Syu
sudo pacman -Syu --noconfirm
yay -S --needed --save --answerclean None --answerdiff None - --noconfirm
fi
# Update on debian based systems
if command -v apt >/dev/null; then
echo "✅ 'apt' found. Updating."
sudo apt update && sudo apt full-upgrade -y
sudo apt update
sudo apt full-upgrade -y
fi
# Update Hyprland