added colored prints to updateall
This commit is contained in:
@@ -36,11 +36,16 @@ function updateall
|
|||||||
set kernel_version (get_pkg_version (kernel_to_pkg))
|
set kernel_version (get_pkg_version (kernel_to_pkg))
|
||||||
|
|
||||||
######## Run PACMAN updates
|
######## Run PACMAN updates
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating pacman ####"
|
||||||
|
set_color normal
|
||||||
sudo pacman -Syu
|
sudo pacman -Syu
|
||||||
|
|
||||||
######## Do additional Discord Updates
|
######## Do additional Discord Updates
|
||||||
if test "$discord_version" != "$(get_pkg_version discord)"
|
if test "$discord_version" != "$(get_pkg_version discord)"
|
||||||
|
set_color cyan
|
||||||
echo "Discord version changed: $discord_version_before -> $discord_version_after"
|
echo "Discord version changed: $discord_version_before -> $discord_version_after"
|
||||||
|
set_color normal
|
||||||
if test -e /usr/bin/curl
|
if test -e /usr/bin/curl
|
||||||
echo "Running Vencord installer..."
|
echo "Running Vencord installer..."
|
||||||
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
|
sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)"
|
||||||
@@ -52,23 +57,35 @@ function updateall
|
|||||||
######## Run FLATPAK Updates
|
######## Run FLATPAK Updates
|
||||||
|
|
||||||
if test -e /usr/bin/flatpak
|
if test -e /usr/bin/flatpak
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating flatpak ####"
|
||||||
|
set_color normal
|
||||||
flatpak update
|
flatpak update
|
||||||
end
|
end
|
||||||
|
|
||||||
######## Run GIT Updates
|
######## Run GIT Updates
|
||||||
|
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating quickshell ####"
|
||||||
|
set_color normal
|
||||||
if test -d ~/.config/quickshell && test -d ~/.config/quickshell/.git
|
if test -d ~/.config/quickshell && test -d ~/.config/quickshell/.git
|
||||||
pushd ~/.config/quickshell/
|
pushd ~/.config/quickshell/
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating fish ####"
|
||||||
|
set_color normal
|
||||||
if test -d ~/.config/fish && test -d ~/.config/fish/.git
|
if test -d ~/.config/fish && test -d ~/.config/fish/.git
|
||||||
pushd ~/.config/fish/
|
pushd ~/.config/fish/
|
||||||
git pull
|
git pull
|
||||||
popd
|
popd
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating hyprland ####"
|
||||||
|
set_color normal
|
||||||
if test -d ~/.config/hypr && test -d ~/.config/hypr/.git
|
if test -d ~/.config/hypr && test -d ~/.config/hypr/.git
|
||||||
pushd ~/.config/hypr/
|
pushd ~/.config/hypr/
|
||||||
git pull
|
git pull
|
||||||
@@ -77,6 +94,9 @@ function updateall
|
|||||||
|
|
||||||
######## Run AUR Updates
|
######## Run AUR Updates
|
||||||
|
|
||||||
|
set_color cyan
|
||||||
|
echo "#### Updating AUR ####"
|
||||||
|
set_color normal
|
||||||
if test -e /usr/bin/paru
|
if test -e /usr/bin/paru
|
||||||
paru -Sua --sudoloop
|
paru -Sua --sudoloop
|
||||||
else if test -e /usr/bin/yay
|
else if test -e /usr/bin/yay
|
||||||
@@ -86,10 +106,10 @@ function updateall
|
|||||||
######## Restart if Kernel Updated
|
######## Restart if Kernel Updated
|
||||||
|
|
||||||
if test "$kernel_version" != "$(get_pkg_version $(kernel_to_pkg))"
|
if test "$kernel_version" != "$(get_pkg_version $(kernel_to_pkg))"
|
||||||
|
set_color cyan
|
||||||
echo "Kernel changed: $kernel_version_before -> $kernel_version_after"
|
echo "Kernel changed: $kernel_version_before -> $kernel_version_after"
|
||||||
echo "Reboot now? [y/N]: "
|
read -P "Reboot now? [y/N]: " answer
|
||||||
|
set_color normal
|
||||||
read answer
|
|
||||||
|
|
||||||
if test "$answer" = "y" -o "$answer" = "Y"
|
if test "$answer" = "y" -o "$answer" = "Y"
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user