Fix dir checks
This commit is contained in:
1 parent
b1d084039b
commit
4e825cfb8b
2 files changed
+2
-2
No files matched your search
@@ -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