From a12505e6e8ceec4299bd31c726df4c3b50e83a7e Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 5 May 2017 11:28:01 +0100 Subject: [PATCH] Ensure ZSH_CACHE_DIR exists Create ZSH_CACHE_DIR if it doesn't exist since AFAICT oh-mh-zsh scripts don't check it exists before using it. --- oh-my-zsh.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index a7de646f..8995d7e3 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -25,6 +25,11 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then ZSH_CACHE_DIR="$ZSH/cache" fi +# Create the ZSH_CACHE_DIR if it doesn't exist +if [[ ! -d $ZSH_CACHE_DIR ]]; then + mkdir -p $ZSH_CACHE_DIR +fi + # Load all of the config files in ~/oh-my-zsh that end in .zsh # TIP: Add files you don't want in git to .gitignore