mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-14 18:59:43 +10:00
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:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user