From 0e74ce02e8581d29af9ef0c4c323dabd6820dcfd Mon Sep 17 00:00:00 2001 From: DarkJoker360 Date: Wed, 6 Jul 2022 16:57:33 +0200 Subject: [PATCH] install: Create dest dir if not present Signed-off-by: DarkJoker360 --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9361420..846f0b5 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,9 @@ else DEST_DIR="$HOME/.local/share/icons" fi -if [ -d "$DEST_DIR/WhiteSur-cursors" ]; then +if [ ! -d "$DEST_DIR" ]; then + mkdir -p $DEST_DIR +elif [ -d "$DEST_DIR/WhiteSur-cursors" ]; then rm -r "$DEST_DIR/WhiteSur-cursors" fi