Browse Source

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

Marc Cornellà 1 year ago
parent
commit
6c3cf658f6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tools/install.sh

+ 5 - 0
tools/install.sh

@@ -523,6 +523,11 @@ EOF
     exit 1
   fi
 
+  # Create ZDOTDIR folder structure if it doesn't exist
+  if [ -n "$ZDOTDIR" ]; then
+    mkdir -p "$ZDOTDIR"
+  fi
+
   setup_ohmyzsh
   setup_zshrc
   setup_shell