From b5b24371649407f25546969f15dc3b85625c42eb Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 20 May 2026 08:56:22 -0600 Subject: [PATCH] update and refresh fixes --- corerefresh | 3 --- coreupdate | 24 ++++++++++++------------ install.sh | 9 ++++++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/corerefresh b/corerefresh index 09a6f50..5fab2ca 100755 --- a/corerefresh +++ b/corerefresh @@ -20,7 +20,4 @@ EOF clear print_logo -echo "Getting the latest changes to CoreDesktop..." - -git -C ~/.local/share/coredesktop pull bash ~/.local/share/coredesktop/install.sh diff --git a/coreupdate b/coreupdate index 87c78ce..b56e6d4 100755 --- a/coreupdate +++ b/coreupdate @@ -28,6 +28,18 @@ sudo cp ~/.local/share/coredesktop/corerefresh ~/.local/bin/corerefresh echo "Updating Arch..." sudo pacman -Syu +cd ~/.local/share/coredesktop +source utils.sh +source packages.conf + +echo "Checking for new packages..." +install_packages "${SYSTEM_UTILS[@]}" +install_packages "${DEV_TOOLS[@]}" +install_packages "${MAINTENANCE[@]}" +install_packages "${DESKTOP[@]}" +install_packages "${MEDIA[@]}" +install_packages "${FONTS[@]}" + echo "Updating AUR..." if ! yay -Sua 2>/dev/null; then @@ -53,18 +65,6 @@ mise upgrade --bump ruby mise reshim gem update -cd ~/.local/share/coredesktop -source utils.sh -source packages.conf - -echo "Checking for new packages..." -install_packages "${SYSTEM_UTILS[@]}" -install_packages "${DEV_TOOLS[@]}" -install_packages "${MAINTENANCE[@]}" -install_packages "${DESKTOP[@]}" -install_packages "${MEDIA[@]}" -install_packages "${FONTS[@]}" - echo "Checking for new flatpaks..." . install-flatpaks.sh diff --git a/install.sh b/install.sh index b72f30f..8446b9a 100755 --- a/install.sh +++ b/install.sh @@ -40,10 +40,13 @@ else echo "git is installed." fi -# Clone the latest CoreDesktop repo into the standard data directory +# Update or clone the CoreDesktop repo echo "Getting the latest version of CoreDesktop..." -rm -rf ~/.local/share/coredesktop -git clone https://gitea.federated.computer/david/coredesktop.git ~/.local/share/coredesktop > /dev/null +if [ -d "$HOME/.local/share/coredesktop/.git" ]; then + git -C ~/.local/share/coredesktop pull +else + git clone https://gitea.federated.computer/david/coredesktop.git ~/.local/share/coredesktop +fi # Install the corerefresh and coreupdate management scripts to the user's bin mkdir -p ~/.local/bin