Make migrations faster to skip if they've already been run

This commit is contained in:
David Heinemeier Hansson
2025-07-20 17:36:29 -05:00
parent 5b3c324350
commit 9b8569e537
16 changed files with 67 additions and 45 deletions

View File

@ -1,13 +1,5 @@
echo "Add new matte black theme"
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/
download_background_image() {
local url="$1"
local path="$2"
gum spin --title "Downloading $url as $path..." -- curl -sL -o "$BACKGROUNDS_DIR/$path" "$url"
}
if [[ ! -L "~/.config/omarchy/themes/matte-black" ]]; then
ln -snf ~/.local/share/omarchy/themes/matte-black ~/.config/omarchy/themes/
source ~/.local/share/omarchy/themes/matte-black/backgrounds.sh
fi