mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-15 03:04:26 +10:00
Add hyprland package manager update
This commit is contained in:
+8
-4
@@ -92,23 +92,27 @@ fi
|
|||||||
|
|
||||||
update () {
|
update () {
|
||||||
|
|
||||||
# Update on 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
|
||||||
# Commands to run if the binaries IS FOUND
|
|
||||||
echo "✅ 'pacman' and 'yay' found. Updating."
|
echo "✅ 'pacman' and 'yay' found. Updating."
|
||||||
sudo pacman -Syu && yay -Syu
|
sudo pacman -Syu && yay -Syu
|
||||||
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
|
||||||
# Commands to run if the binary IS FOUND
|
|
||||||
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
|
||||||
|
if command -v hyprpm >/dev/null; then
|
||||||
|
echo "✅ 'hyprpm' found. Updating."
|
||||||
|
hyprpm reload && sleep 2
|
||||||
|
hyprpm update
|
||||||
|
fi
|
||||||
|
|
||||||
# Update Flatpak
|
# Update Flatpak
|
||||||
if command -v flatpak >/dev/null; then
|
if command -v flatpak >/dev/null; then
|
||||||
# Commands to run if the binary IS FOUND
|
|
||||||
echo "✅ 'flatpak' found. Updating."
|
echo "✅ 'flatpak' found. Updating."
|
||||||
flatpak update
|
flatpak update
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user