Files
coredesktop/coreupdate
2026-06-10 08:26:38 -06:00

36 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Print the logo
print_logo() {
cat << "EOF"
██
█ ██
██ ██████ █████ ██ █████ █████ ████ ██ █████ ██
██ ██ ██ ███ ███████ ██ ██ ██ ██ ██ ████████ ██ ██ ███████
█████ ██████ ██ ██ ██████ ██ ████████ ██ █ ███████ ██ ██
██ ██████ ███████ ██████ ██ ██████ ██████ ██████ ███████
EOF
}
# Clear screen and show logo
clear
print_logo
COREDESKTOP="$HOME/.local/share/coredesktop"
echo "Updating CoreDesktop..."
git -C "$COREDESKTOP" pull
mkdir -p "$COREDESKTOP/updates.d"
sudo cp "$COREDESKTOP/coreupdate" ~/.local/bin/coreupdate
sudo cp "$COREDESKTOP/corerefresh" ~/.local/bin/corerefresh
for plugin in "$COREDESKTOP/updates.d/"*.sh; do
[ -f "$plugin" ] && source "$plugin"
done
echo "Done."