mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-07-11 18:57:08 +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
|
# Update arch based systems with yay AUR helper
|
||||||
if command -v pacman >/dev/null && command -v yay >/dev/null; then
|
if command -v pacman >/dev/null && command -v yay >/dev/null; then
|
||||||
echo "✅ 'pacman' and 'yay' found. Updating."
|
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
|
fi
|
||||||
|
|
||||||
# Update on debian based systems
|
# Update on debian based systems
|
||||||
if command -v apt >/dev/null; then
|
if command -v apt >/dev/null; then
|
||||||
echo "✅ 'apt' found. Updating."
|
echo "✅ 'apt' found. Updating."
|
||||||
sudo apt update && sudo apt full-upgrade -y
|
sudo apt update
|
||||||
|
sudo apt full-upgrade -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update Hyprland
|
# Update Hyprland
|
||||||
|
|||||||
Reference in New Issue
Block a user