#!/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."