From 37f65b3f86219363afaf10c6330c30d73c190562 Mon Sep 17 00:00:00 2001 From: huyz Date: Tue, 11 Dec 2012 21:37:17 -0800 Subject: [PATCH] Check for the existence of .zcompdump before compiling --- runcoms/zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runcoms/zlogin b/runcoms/zlogin index 9e31577..e27e233 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -9,7 +9,7 @@ { # Compile the completion dump to increase startup speed. zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" - if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then + if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then zcompile "$zcompdump" fi