mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00
Fix dir checks
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/catppucin
|
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/catppucin
|
||||||
|
|
||||||
if [[ -z $BACKGROUNDS_DIR ]]; then
|
if [[ ! -d $BACKGROUNDS_DIR ]]; then
|
||||||
mkdir -p $BACKGROUNDS_DIR
|
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
|
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
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/tokyo-night
|
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/tokyo-night
|
||||||
|
|
||||||
if [[ -z $BACKGROUNDS_DIR ]]; then
|
if [[ ! -d $BACKGROUNDS_DIR ]]; then
|
||||||
mkdir -p $BACKGROUNDS_DIR
|
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/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
|
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
|
||||||
|
Reference in New Issue
Block a user