Move to Federated Gitea
This commit is contained in:
51
coreupdate
Executable file
51
coreupdate
Executable file
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Print the logo
|
||||
print_logo() {
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
██
|
||||
█ ██
|
||||
██ ██████ █████ ██ █████ █████ ████ ██ █████ ██
|
||||
██ ██ ██ ███ ███████ ██ ██ ██ ██ ██ ████████ ██ ██ ███████
|
||||
█████ ██████ ██ ██ ██████ ██ ████████ ██ █ ███████ ██ ██
|
||||
██ ██████ ███████ ██████ ██ ██████ ██████ ██████ ███████
|
||||
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
# Clear screen and show logo
|
||||
clear
|
||||
print_logo
|
||||
|
||||
echo "Updating Arch..."
|
||||
sudo pacman -Syu
|
||||
|
||||
echo "Updating AUR..."
|
||||
|
||||
if ! yay -Sua 2>/dev/null; then
|
||||
echo "yay -Sua returned an error. Let's rebuild YAY."
|
||||
sudo pacman -R yay
|
||||
cd /tmp
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
cd ..
|
||||
rm -rf yay
|
||||
cd
|
||||
yay -Sua --noconfirm
|
||||
else
|
||||
yay -Sua --noconfirm
|
||||
fi
|
||||
|
||||
echo "Updating Flatpaks..."
|
||||
flatpak update
|
||||
|
||||
echo "Updating Ruby and Rails..."
|
||||
mise upgrade --bump ruby
|
||||
mise reshim
|
||||
gem update
|
||||
|
||||
echo "Done. You probably want to reboot your system..."
|
||||
Reference in New Issue
Block a user