Only update extra themes that are git repositories

Fixes #2688
This commit is contained in:
David Heinemeier Hansson 2025-10-21 17:52:23 -07:00
parent 33baf59cef
commit 910c23f539

View File

@ -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