install: Create dest dir if not present

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
This commit is contained in:
DarkJoker360 2022-07-06 16:57:33 +02:00
parent 5c94e8c22d
commit 0e74ce02e8

View file

@ -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