6c3cf658f6f341f7c716d6ff16714465cb651725

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(installer): automatically create ZDOTDIR path if it doesn't exist

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index 3ea12f8d45d35f33f1dfc10c67cfedbbb4842bca..f4ef16a0cca674899731af68e6ac948c053cdc9d 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -523,6 +523,11 @@ EOF
 6     exit 1
 7   fi
 8 
 9+  # Create ZDOTDIR folder structure if it doesn't exist
10+  if [ -n "$ZDOTDIR" ]; then
11+    mkdir -p "$ZDOTDIR"
12+  fi
13+
14   setup_ohmyzsh
15   setup_zshrc
16   setup_shell