浏览代码

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

Marc Cornellà 1 年之前
父节点
当前提交
6c3cf658f6
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tools/install.sh

+ 5 - 0
tools/install.sh

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