From 5ffc0d036c587741fd25092e7809dad2b00b3677 Mon Sep 17 00:00:00 2001 From: Ye Shu Date: Thu, 18 Jun 2020 08:07:13 +0000 Subject: [PATCH] init: don't run update check if DISABLE_AUTO_UPDATE (#9040) skip the update check at initialization if DISABLE_AUTO_UPDATE is set to true --- oh-my-zsh.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 741bad510..5b057256d 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -5,7 +5,9 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then fi # Check for updates on initial load... -source $ZSH/tools/check_for_upgrade.sh +if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then + source $ZSH/tools/check_for_upgrade.sh +fi # Initializes Oh My Zsh