From 4e825cfb8b0e39e067eb8c7a65f68bca6e8c1e95 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 18 Jun 2025 21:41:56 +0200 Subject: [PATCH] Fix dir checks --- themes/catppuccin/backgrounds.sh | 2 +- themes/tokyo-night/backgrounds.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/catppuccin/backgrounds.sh b/themes/catppuccin/backgrounds.sh index 497693b..3a68af2 100644 --- a/themes/catppuccin/backgrounds.sh +++ b/themes/catppuccin/backgrounds.sh @@ -1,6 +1,6 @@ BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/catppucin -if [[ -z $BACKGROUNDS_DIR ]]; then +if [[ ! -d $BACKGROUNDS_DIR ]]; then mkdir -p $BACKGROUNDS_DIR gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/1-catppuccin.png https://github.com/basecamp/omakub/raw/refs/heads/master/themes/catppuccin/background.png fi diff --git a/themes/tokyo-night/backgrounds.sh b/themes/tokyo-night/backgrounds.sh index 12e0f47..6fe5bf9 100644 --- a/themes/tokyo-night/backgrounds.sh +++ b/themes/tokyo-night/backgrounds.sh @@ -1,6 +1,6 @@ BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/tokyo-night -if [[ -z $BACKGROUNDS_DIR ]]; then +if [[ ! -d $BACKGROUNDS_DIR ]]; then mkdir -p $BACKGROUNDS_DIR gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/1-Milad-Fakurian-Abstract-Purple-Blue.jpg https://images.unsplash.com/photo-1620207418302-439b387441b0 gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/2-Pawel-Czerwinski-Abstract-Purple-Blue.jpg https://images.unsplash.com/photo-1651870364199-fc5f9f46ac85