From 910c23f5397c3652a51cf5b4692838a7ac020732 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 21 Oct 2025 17:52:23 -0700 Subject: [PATCH] Only update extra themes that are git repositories Fixes #2688 --- bin/omarchy-theme-update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-theme-update b/bin/omarchy-theme-update index a4ecbde6..aa68f095 100755 --- a/bin/omarchy-theme-update +++ b/bin/omarchy-theme-update @@ -1,5 +1,8 @@ #!/bin/bash for dir in ~/.config/omarchy/themes/*/; do - [ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull + if [[ -d $dir ]] && [[ ! -L "${dir%/}" ]] && [[ -d "$dir/.git" ]]; then + echo "Updating: $(basename "$dir")" + git -C "$dir" pull + fi done