From 8d697553504adf059eb68c20a5d60d438a132401 Mon Sep 17 00:00:00 2001 From: David Young Date: Sat, 20 Jun 2026 08:58:21 -0600 Subject: [PATCH] fix coreupdate --- coreupdate | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/coreupdate b/coreupdate index c10bc0a..3539002 100755 --- a/coreupdate +++ b/coreupdate @@ -28,8 +28,21 @@ mkdir -p "$COREDESKTOP/updates.d" sudo cp "$COREDESKTOP/coreupdate" ~/.local/bin/coreupdate sudo cp "$COREDESKTOP/corerefresh" ~/.local/bin/corerefresh +if [[ -z "$COREUPDATE_REEXECED" ]]; then + export COREUPDATE_REEXECED=1 + exec ~/.local/bin/coreupdate +fi + for plugin in "$COREDESKTOP/updates.d/"*.sh; do - [ -f "$plugin" ] && source "$plugin" + if [ -f "$plugin" ]; then + unset -f is_installed run_update + source "$plugin" + if declare -f run_update > /dev/null; then + if ! declare -f is_installed > /dev/null || is_installed; then + run_update + fi + fi + fi done echo "Done."